Process #6
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: Process | |
on: | |
schedule: | |
- cron: "05 03 * * *" | |
- cron: "05 11 * * *" | |
workflow_dispatch: | |
env: | |
# time zone | |
TZ: Asia/Shanghai | |
# network proxy aggregate config | |
SUBSCRIBE_CONF: ${{ secrets.SUBSCRIBE_CONF }} | |
# token | |
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }} | |
# network reachable | |
REACHABLE: ${{ vars.REACHABLE }} | |
# not check connective | |
SKIP_ALIVE_CHECK: ${{ vars.SKIP_ALIVE_CHECK }} | |
# skip remark | |
SKIP_REMARK: ${{ vars.SKIP_REMARK }} | |
# workflow mode | |
WORKFLOW_MODE: ${{ vars.WORKFLOW_MODE }} | |
# include spwcial protocols, such vless hysteria2 and hysteria | |
ENABLE_SPECIAL_PROTOCOLS: ${{ vars.ENABLE_SPECIAL_PROTOCOLS }} | |
jobs: | |
process: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Prepare | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
architecture: "x64" | |
cache: "pip" | |
- name: Install | |
run: pip3 install -r requirements.txt | |
- name: Process | |
run: python -u subscribe/process.py --overwrite | |
- name: Timestamp | |
run: date |