feat: update list 8 #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Block Lists | |
on: | |
push: | |
paths: | |
- 'lists/snapshot/**.json' | |
- 'lists/block.json' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Pull latest changes | |
run: | | |
git pull origin master | |
- name: Init ENV | |
run: | | |
sudo apt install jq | |
- name: Merge Lists | |
run: | | |
bash merge.sh | |
- name: Commit changes | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add . | |
git commit -m "bot: update lists" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |