-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.56 KB
/
test.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
name: epg Test
on:
workflow_dispatch:
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.x'
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: npm grab epg
run: |
npm install
#npm test --- sat.tv.test
#npm run channels:parse --- --config=./sites/sat.tv.test/sat.tv.test.config.js --output=./sites/sat.tv.test/sat.tv.test.channels.xml
#npm run grab -- --channels=./epg/channels/test.channels.xml --output=guides/epg-test.channels.xml --days=1 --maxConnections=20 --timeout=90000
#npm run grab -- --channels=./epg/channels/ma.channels.xml --output=guides/allente.no.xml --days=2 --maxConnections=20 --timeout=90000
npm run grab --- --site=sat.tv.test --maxConnections=20 --output=guides/allente.no.xml --days=1 --timeout=90000 --lang=en
#npm run channels:parse --- --config=./sites/sat.tv.test/sat.tv.test.config.js --output=./sites/sat.tv.test/sat.tv.test_ar.channels.xml --set=lang:ar
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Your Name"
git add -f guides/allente.no.xml
#git add -f sites/sat.tv.test/sat.tv.test.channels.xml
#git add -f sites/sat.tv.test/sat.tv.test_ar.channels.xml
git commit -m "Update xml"
git push -f origin main