Skip to content

Update Update.yml

Update Update.yml #19

Workflow file for this run

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)
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