forked from mirrors/amnezia-wg-easy
		
	CI: use dependabot instead of gh action (#1364)
This commit is contained in:
		
							parent
							
								
									66c64af7cf
								
							
						
					
					
						commit
						4dc56a0718
					
				
					 2 changed files with 10 additions and 40 deletions
				
			
		
							
								
								
									
										10
									
								
								.github/dependabot.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/dependabot.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -5,3 +5,13 @@ updates:
 | 
				
			||||||
    schedule:
 | 
					    schedule:
 | 
				
			||||||
      interval: "weekly"
 | 
					      interval: "weekly"
 | 
				
			||||||
    rebase-strategy: "auto"
 | 
					    rebase-strategy: "auto"
 | 
				
			||||||
 | 
					  - package-ecosystem: "npm"
 | 
				
			||||||
 | 
					    directory: "/"
 | 
				
			||||||
 | 
					    schedule:
 | 
				
			||||||
 | 
					      interval: "weekly"
 | 
				
			||||||
 | 
					    rebase-strategy: "auto"
 | 
				
			||||||
 | 
					  - package-ecosystem: "npm"
 | 
				
			||||||
 | 
					    directory: "/src/"
 | 
				
			||||||
 | 
					    schedule:
 | 
				
			||||||
 | 
					      interval: "weekly"
 | 
				
			||||||
 | 
					    rebase-strategy: "auto"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										40
									
								
								.github/workflows/npm-update-bot.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										40
									
								
								.github/workflows/npm-update-bot.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,40 +0,0 @@
 | 
				
			||||||
name: NPM Update Bot 🤖
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
on:
 | 
					 | 
				
			||||||
  push:
 | 
					 | 
				
			||||||
    branches: [ "master" ]
 | 
					 | 
				
			||||||
  schedule:
 | 
					 | 
				
			||||||
    - cron: "0 0 * * 1"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
  npmupbot:
 | 
					 | 
				
			||||||
    name: NPM Update Bot 🤖
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    if: github.repository_owner == 'wg-easy'
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
      - name: Checkout repository
 | 
					 | 
				
			||||||
        uses: actions/checkout@v4
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          repository: wg-easy/wg-easy
 | 
					 | 
				
			||||||
          ref: master
 | 
					 | 
				
			||||||
      - name: Setup Node
 | 
					 | 
				
			||||||
        uses: actions/setup-node@v4
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          node-version: 'lts/*'
 | 
					 | 
				
			||||||
          check-latest: true
 | 
					 | 
				
			||||||
          cache: 'npm'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Bot 🤖 "Updating NPM Packages..."
 | 
					 | 
				
			||||||
        run: |
 | 
					 | 
				
			||||||
          npm install -g --silent npm-check-updates
 | 
					 | 
				
			||||||
          ncu -u
 | 
					 | 
				
			||||||
          npm update
 | 
					 | 
				
			||||||
          cd src
 | 
					 | 
				
			||||||
          ncu -u
 | 
					 | 
				
			||||||
          npm update
 | 
					 | 
				
			||||||
          npm run buildcss
 | 
					 | 
				
			||||||
          git config --global user.name 'NPM Update Bot'
 | 
					 | 
				
			||||||
          git config --global user.email 'npmupbot@users.noreply.github.com'
 | 
					 | 
				
			||||||
          git add .
 | 
					 | 
				
			||||||
          git commit -am "npm: package updates" || true
 | 
					 | 
				
			||||||
          git push
 | 
					 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue