-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.11 KB
/
streams.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
45
name: run streams.py
on:
schedule:
- cron: '0 */1 * * *' # Runs in every hour
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pwd
cd ./platforms/
pip3 install -r requirements.txt
pip3 install beautifulsoup4
- name: execute py script
run: |
pwd
cd ./platforms/
python myvideoaz.py myvideoaz.json
python streams.py streams.json
python3 royanews.py > links/royanews.m3u8
python3 nowtvtr.py > links/nowtr.m3u8
- name: commit and push files
run: |
git config --local user.email ""
git config --local user.name "Stream Ninja 🥷🏽"
git add -A
git commit -m "updated streams"
git push