-
Notifications
You must be signed in to change notification settings - Fork 102
41 lines (41 loc) · 1.07 KB
/
automated-updates.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
33
34
35
36
37
38
39
40
41
name: Update automated lists
on:
push:
branches:
- master
paths:
- 'pihole-google.txt'
jobs:
update:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- uses: actions/setup-python@v5
with:
python-version: 3.9
cache: 'pip'
- name: Update categories
run: |
python3 convert.py categories
- name: Update AdGuard lists
run: |
python3 convert.py adguard
python3 convert.py adguard_important
- name: Update parsed list
run: |
python3 convert.py pihole
- name: Update Unbound list
run: |
python3 convert.py unbound
- name: Commit automated updates
run: |
git add . && git commit -am "Automated update
- Categories lists update
- AdGuard list update
- Parsed list update
- Unbound list update"
git push