-
Notifications
You must be signed in to change notification settings - Fork 27
31 lines (26 loc) · 1.1 KB
/
atualizar-tvicnnpt.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
name: Update streams
on:
schedule:
- cron: "30 */4 * * *"
jobs:
Update-streams:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: update streams
run: |
#!/bin/bash
sed -i "/live_tvi\/live_tvi/ c https://video-auth6.iol.pt/live_tvi/live_tvi/playlist.m3u8?wmsAuthSign=$(wget https://services.iol.pt/matrix?userId= -o /dev/null -O -)/" pt.m3u8
sed -i "/live_cnn/ c https://video-auth7.iol.pt/live_cnn/live_cnn/playlist.m3u8?wmsAuthSign=$(wget https://services.iol.pt/matrix?userId= -o /dev/null -O -)/" pt.m3u8
sed -i "/live_tvi_internacional/ c https://video-auth6.iol.pt/live_tvi_internacional/live_tvi_internacional/playlist.m3u8?wmsAuthSign=$(wget https://services.iol.pt/matrix?userId= -o /dev/null -O -)/" pt.m3u8
- name: setup git config
run: |
git config user.name "TVI.CNNPT bot"
git config user.email "<>"
- name: commit
run: |
git pull
git add pt.m3u8
git commit -m "Update streams"
git push origin live