forked from uBlockOrigin/uAssets
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1014 Bytes
/
Copy pathupdate-easylist.yml
File metadata and controls
37 lines (34 loc) · 1014 Bytes
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
33
34
35
36
37
name: Update Easylist assets (hourly)
on:
schedule:
- cron: "47 */3 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
if: github.repository_owner == 'uBlockOrigin'
permissions:
actions: write
contents: write # for Git to git push
name: Update Easylist assets
runs-on: ubuntu-latest
steps:
- name: Clone uAssets
uses: actions/checkout@v4
- name: Assemble Easylist assets
run: |
./tools/make-easylist.sh
- name: Commit changes, if any
env:
GH_TOKEN: ${{ github.token }}
run: |
if [[ -n $(git diff) ]]; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -u thirdparties/
git commit -m "Update Easylist assets"
git pull --rebase origin master
git push origin master
gh workflow run main.yml
fi