forked from wzdnzd/aggregator
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (43 loc) · 1.13 KB
/
process.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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