File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Fetch & Commit
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ schedule :
11+ - cron : ' 0 2 * * *' # Runs at 2 AM every day
12+
13+ jobs :
14+ fetch-and-commit :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : write
18+ env :
19+ CGO_ENABLED : 0
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Go
26+ uses : actions/setup-go@v5
27+ with :
28+ go-version : ' 1.24.5'
29+ check-latest : true
30+
31+ - name : Download Go modules
32+ run : go mod download
33+
34+ - name : Wait for 1 second
35+ run : sleep 1
36+
37+ - name : Run Fetch and Convert
38+ run : go run . -f
39+
40+ - name : Run CDN Checker
41+ if : ${{ success() }}
42+ run : go run . -c
43+
44+ - name : Run WARP Checker
45+ if : ${{ success() }}
46+ run : go run . -w
47+
48+ - name : Set timestamp
49+ run : echo "TIMESTAMP=$(date -u +"%H:%M %d-%m-%Y")" >> $GITHUB_ENV
50+
51+ - name : Commit
52+ uses : stefanzweifel/git-auto-commit-action@v6
53+ with :
54+ commit_message : " Auto-Update - (${{ env.TIMESTAMP }})"
55+ file_pattern : ' all_cf_v4.txt all_cdn_v4.txt all_warp_v4.txt'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments