-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 973 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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