forked from wzdnzd/aggregator
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 950 Bytes
/
Copy pathpython-package-conda.yml
File metadata and controls
40 lines (32 loc) · 950 Bytes
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
name: Generate and Commit File
on:
schedule:
- cron: '0 */12 * * *' # 每12个小时跑一次
workflow_dispatch: # 允许手动触发
jobs:
build-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip3 install pyYAML requests tqdm
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Collect proxies
run: |
cd aggregate
python -u subscribe/collect.py -s
- name: Configure Git
run: |
git config user.name "GitHub Actions Bot"
git config user.email "actions@github.com"
- name: Commit and push changes
run: |
git add aggregate/data/proxies.yaml
git commit -m "Add generated output.yaml"
git push