-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 930 Bytes
/
action.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: Download adblock source list
on:
schedule:
- cron: 0 */12 * * *
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Download AdBlock lists
run: |
echo "Downloading big adblock list..."
curl -s 'https://big.oisd.nl/domainswild' -o oisd_big_domainswild.txt
echo "Downloading small adblock list..."
curl -s 'https://small.oisd.nl/domainswild' -o oisd_small_domainswild.txt
- name: Rename files
run: |
mv oisd_big_domainswild.txt big.txt
mv oisd_small_domainswild.txt small.txt
- name: Clean up original files
run: |
rm -fr oisd_big.yamle oisd_big_domainswild.txt oisd_small_domainswild.txt
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatic update