-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (40 loc) · 1.1 KB
/
build_lists.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
name: Build lists
run-name: Build lists
on:
workflow_dispatch:
workflow_call:
workflow_run:
workflows:
- Remove dead domains
- Remove parked domains
- Manually add domains
- Retrieve domains
- Validate domains
types:
- completed
push:
paths:
- 'config/wildcards.txt'
permissions:
contents: write
jobs:
build-lists:
# Do not run if workflow_run failed/cancelled (still allows workflow_dispatch and workflow_call)
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: build_list.sh
run: bash scripts/build_lists.sh
env:
BLOCKLIST_DESCRIPTION: ${{ vars.BLOCKLIST_DESCRIPTION }}
- name: Push
run: |
git config user.email ${{ vars.GIT_EMAIL }}
git config user.name ${{ vars.GIT_USERNAME }}
git add .
git diff-index --quiet HEAD || git commit -m "CI: build lists"
git push -q