-
Notifications
You must be signed in to change notification settings - Fork 221
44 lines (36 loc) · 928 Bytes
/
wspd.yml
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
name: 卫视
on:
schedule:
- cron: '40 21 * * *'
workflow_dispatch:
分支:
- main
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install requests
- name: Run Python script
run: python wspd.py
- name: Commit and push if changed
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git diff
if [[ -f "./直播/wspd.txt" ]]; then
git add ./直播/wspd.txt
fi
if ! git diff --staged --quiet; then
git commit -m "Auto-update live.m3u"
git push
fi
env:
TZ: Asia/Shanghai