Skip to content

Commit 1f90053

Browse files
committed
Allow manually trigger workflow; Purge CDN cache after push commits.
1 parent 0dd6fe3 commit 1f90053

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/update-rules-every-24hrs.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Update AdBlock Rules Every 24 Hours
22
on:
33
push:
44
branches: [ master ]
5+
workflow_dispatch:
56
schedule:
67
- cron: '0 0 */1 * *'
78

@@ -40,14 +41,17 @@ jobs:
4041
run: |
4142
if [ -z "$(git status --porcelain)" ]; then
4243
exit 0
43-
else
44+
else
4445
git add .
45-
git config --local user.email "ask@hackl0us.com"
46-
git config --local user.name "Hackl0us"
46+
git config --local user.email "[email protected].com"
47+
git config --local user.name "github-action[bot]"
4748
git commit -m "Updated at $(date)" -a
48-
fi
49+
fi
4950
5051
- name: GitHub Push
5152
uses: ad-m/[email protected]
5253
with:
5354
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Purge CDN Cache
57+
run: curl ${{ secrets.CDN_URL }}

0 commit comments

Comments
 (0)