-
Notifications
You must be signed in to change notification settings - Fork 16
51 lines (43 loc) · 1.21 KB
/
Copy pathmain.yml
File metadata and controls
51 lines (43 loc) · 1.21 KB
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
name: zb
on:
schedule:
- cron: '0 */8 * * *'
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install bs4
run: pip3 install bs4
- name: Install playwright
run: pip3 install playwright
- name: Install requests
run: pip3 install requests
- name: Install playwright install
run: playwright install
- name: Install datetime
run: pip install datetime
- name: Run ZB1
run: python ${{ github.workspace }}/DXZB.py
# - name: Run zb2
# run: python ${{ github.workspace }}/zb2.py
- name: 提交更改
run: |
git config --local user.email "vjfchen@sina.com"
git config --local user.name "mlzlzj"
git add .
git commit *.txt -m "Add generated file"
# git commit *.m3u -m "Add generated file"
#git pull --rebase
git push -f