Update block lists #6790
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: | |
schedule: | |
- cron: "15 * * * *" | |
workflow_dispatch: | |
jobs: | |
update: | |
permissions: | |
contents: write | |
runs-on: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: '22' | |
- run: npm ci | |
- run: npm run update | |
- run: | | |
# configure user | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
# stage any file changes to be committed | |
git add . | |
# make commit with staged changes | |
git commit -m 'update list' | |
# push the commit back up to source GitHub repository | |
git push |