gfwlist2pac #1169
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: gfwlist2pac | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * *' | |
jobs: | |
bot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout actions | |
uses: actions/checkout@v1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: download genpac | |
run: pip install -U genpac | |
- name: update pac | |
run: genpac --format=pac --pac-proxy="SOCKS5 127.0.0.1:4781" -o gfwlist.pac | |
- name: commit | |
run: | | |
git config --global user.email [email protected] | |
git config --global user.name ElmTran | |
git add . | |
git commit -m "update pac" -a | |
- name: push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.REPO_TOKEN }} |