Rewrite api:load script

This commit is contained in:
freearhey
2023-10-07 07:19:39 +03:00
parent 3f348fd15d
commit 1f6e1e10e4
9 changed files with 379 additions and 50 deletions

View File

@@ -20,14 +20,8 @@ jobs:
- uses: actions/setup-node@v3
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
with:
node-version: 16
node-version: 18
cache: 'npm'
- name: download data from api
if: steps.files.outputs.any_changed == 'true'
run: |
mkdir -p temp/data
curl -L -o temp/data/blocklist.json https://iptv-org.github.io/api/blocklist.json
curl -L -o temp/data/channels.json https://iptv-org.github.io/api/channels.json
- name: install dependencies
if: steps.files.outputs.any_changed == 'true'
run: npm install

View File

@@ -31,11 +31,6 @@ jobs:
id: files
with:
files: streams/*.m3u
- name: download data from api
run: |
mkdir -p temp/data
curl -L -o temp/data/blocklist.json https://iptv-org.github.io/api/blocklist.json
curl -L -o temp/data/channels.json https://iptv-org.github.io/api/channels.json
- uses: actions/setup-node@v3
if: ${{ !env.ACT }}
with:

View File

@@ -29,8 +29,6 @@ jobs:
cache: 'npm'
- name: install dependencies
run: npm install
- name: load api data
run: npm run api:load
- name: update internal playlists
run: npm run playlist:update --silent >> $GITHUB_OUTPUT
id: playlist-update