mirror of
				https://github.com/Maks1mS/free-ozon-dpr.git
				synced 2025-10-31 05:01:55 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			824 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			824 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Update
 | |
| 
 | |
| permissions:
 | |
|   contents: write
 | |
| 
 | |
| on:
 | |
|   workflow_dispatch:
 | |
|   schedule:
 | |
|     - cron: '0 0 * * *'
 | |
| 
 | |
| jobs:
 | |
|   update:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Checkout
 | |
|         uses: actions/checkout@v4
 | |
|       - name: Setup Node.js
 | |
|         uses: actions/setup-node@v1
 | |
|         with:
 | |
|           node-version: 20
 | |
|       
 | |
|       - name: Install
 | |
|         run: npm ci
 | |
| 
 | |
|       - name: Update points
 | |
|         run: node scripts/update.js && node scripts/merge-data.js 
 | |
|         env:
 | |
|           NODE_DEBUG: net
 | |
|       
 | |
|       - name: Commit changes
 | |
|         run: |
 | |
|           git config --global user.name "github-actions[bot]"
 | |
|           git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
 | |
|           git add .
 | |
|           git commit -am "[Automated action] Update points" || true
 | |
|           git push |