Skip to content

Commit b450a7f

Browse files
authored
Create main.yml
1 parent c2fb742 commit b450a7f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Daily Update Tracker
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: '0 12 * * *'
9+
10+
env:
11+
innoextract_version: 1.9
12+
arch: amd64
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Update trackers_all.txt
25+
shell: pwsh
26+
run: |
27+
curl https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt >> trackers_all.txt
28+
curl https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/all.txt >> trackers_all.txt
29+
curl https://raw.githubusercontent.com/chenjia404/CnTrackersList/master/all.txt >> trackers_all.txt
30+
curl https://raw.githubusercontent.com/hezhijie0327/Trackerslist/main/trackerslist_tracker.txt >> trackers_all.txt
31+
sort trackers_all.txt | uniq > tmp.txt
32+
mv tmp.txt trackers_all.txt
33+
34+
- name: Commit and Push changes
35+
run: |
36+
echo $(date +'%Y%m%d') > date.txt
37+
git config --local user.email "[email protected]"
38+
git config --local user.name "GitHub Action"
39+
git add .
40+
git commit -am "$(date +'%Y%m%d')"
41+
git push -v --progress

0 commit comments

Comments
 (0)