blob: 4ae2b729b9272f92340828e1617645573d351751 (
plain)
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 Easylist assets (hourly)
on:
schedule:
- cron: "47 */3 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
if: github.repository_owner == 'uBlockOrigin'
permissions:
contents: write # for Git to git push
name: Update Easylist assets
runs-on: ubuntu-latest
steps:
- name: Clone uAssets
uses: actions/checkout@v3
- name: Assemble Easylist assets
run: |
./tools/make-easylist.sh
- name: Commit changes, if any
run: |
if [[ -n $(git diff) ]]; then
git config user.name "github-actions bot"
git config user.email "<>"
git add -u thirdparties/
git commit -m "Update Easylist assets"
git push origin master
fi
|