-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPTV.yml
40 lines (40 loc) · 1.15 KB
/
IPTV.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
name: IPTV All
on:
push:
schedule:
- name: daily_task
description: Run task every day at 4:00 PM
cron: "0 16 * * *"
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: pip install selenium requests
- name: Install Chrome WebDriver
run: |
LATEST_CHROMEDRIVER_VERSION=120.0.6099.109
curl -sS -o chromedriver_linux64.zip "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6099.109/linux64/chrome-headless-shell-linux64.zip"
sudo unzip chromedriver_linux64.zip -d /usr/local/bin
rm chromedriver_linux64.zip
- name: Set chromedriver path
run: |
sudo ln -sf /usr/local/bin/chrome-headless-shell-linux64/chrome-headless-shell /usr/local/bin/chromedriver
sudo chmod +x /usr/local/bin/chromedriver
- name: Run script
run: python ${{ github.workspace }}/IPTV.py
- name: 提交更改
run: |
git config --local user.email "你自己的github邮箱"
git config --local user.name "你自己的github用户名"
git add .
git commit *.txt -m "Add generated file"
git push -f