Sync ASN.China.list File #2
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: Sync File | |
on: | |
schedule: | |
- cron: '0 18 * * *' # 每天下午6点触发 | |
workflow_dispatch: # 可以手工触发 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout your repository | |
uses: actions/checkout@v3 | |
- name: Download file | |
run: | | |
curl -L https://raw.githubusercontent.com/missuo/ASN-China/refs/heads/main/ASN.China.list -o Common/ASN.China.list | |
- name: Commit and push changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
run: | | |
git config --global user.name 'cngzsunny' | |
git config --global user.email '[email protected]' | |
git add Common/ASN.China.list | |
git commit -m "Sync ASN.China.list" || echo "No changes to commit" | |
git push https://x-access-token:${GITHUB_TOKEN}@github.com/cngzsunny/vpn_tool.git main |