-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (49 loc) · 1.36 KB
/
release.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
name: Live Spider
on:
schedule:
- cron: 0 16 * * * # 分钟(0) 小时(0) 日(*) 月(*) 星期几(*)
workflow_dispatch:
jobs:
Spider:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
permissions:
contents: write
security-events: write
pull-requests: write
steps:
- name: Clone TVSpider Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Upgrade Pip
run: |
python -m pip install --upgrade pip
- name: Install requirements
run: |
pip install -r ./requirements.txt
- name: Live Spider
run: |
python ./main.py
- name: Commit Live Config files
run: |
git config --global user.emai ${{ secrets.GT_EMAIL }}
git config --global user.name ${{ secrets.GH_ACTOR}}
git add json
git add live
commit_msg="* 更新直播源"
git commit -a -m "$commit_msg"
- name: Push Live Config Changes To Github
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.Token }}
directory: .
branch: main
force: true
env:
GITHUB_ACTOR: ${{ secrets.GH_ACTOR }}