Skip to content

Rename blank.yml to Update.yml #1

Rename blank.yml to Update.yml

Rename blank.yml to Update.yml #1

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@v3
- name: GetTime
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S CST')"
- name: Update
run: |
wget https://raw.githubusercontent.com/hezhijie0327/GFWList2AGH/source/release.sh -O ./Shell/Source.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