-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.12 KB
/
scheduled.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
42
43
44
45
name: Scheduled
on:
schedule:
- cron: '0 19 * * *' # BST 01:00 (GMT+6)
push:
paths:
- '.github/workflows/scheduled.yml'
- '.github/workflows/scripts/nextdns-lists.py'
pull_request:
paths:
- '.github/workflows/scheduled.yml'
- '.github/workflows/scripts/nextdns-lists.py'
workflow_dispatch:
permissions:
contents: write
jobs:
start:
runs-on: ubuntu-latest
env:
python: '3.13'
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ env.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.python }}
- name: Generate NextDNS Recommended Blocklists
run: python3 .github/workflows/scripts/nextdns-lists.py
- name: Update Other Blocklists
run: echo 'python3 .github/workflows/scheduled/update_lists.py'
- name: Commit changes
run: |
git config --local user.email '[email protected]'
git config --local user.name 'touhidurrr'
git add filterlists
git commit -m 'Updated Lists [Automated]'
git push