Update Update.yml #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: GetTime | |
id: date | |
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S CST')" >> $date | |
- 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 | |
echo "Auto Update AdGuardHome-ByPass in ${{ steps.date.outputs.date }}" > 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 "${{ steps.date.outputs.date }}" | |
git branch -D Files | |
git branch -m Files | |
- name: Push | |
run: git push -f origin Files |