-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1012 Bytes
/
Update.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
name: Update
on:
push:
schedule:
- cron: 0,30 * * * *
env:
TZ: Asia/Shanghai
jobs:
Update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update
run: |
wget https://raw.githubusercontent.com/hezhijie0327/GFWList2AGH/source/release.sh -O ./.github/source.sh
wget https://raw.githubusercontent.com/hezhijie0327/GFWList2AGH/source/data/data_modify.txt -O ./.github/custom.txt
sudo bash ./.github/release.sh
GETTIME=$(date +'%Y-%m-%d %H:%M:%S CST')
echo "Auto Update AdGuardHome-ByPass in ${GETTIME}" > README.md
- name: Clean
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout --orphan latest_branch
git add -A
git commit -am "${GETTIME}"
git branch -D Files
git branch -m Files
- name: Push
run: git push -f origin Files