mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 10:26:48 -05:00
Rewrite api:load script
This commit is contained in:
8
.github/workflows/check.yml
vendored
8
.github/workflows/check.yml
vendored
@@ -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
|
||||
|
||||
5
.github/workflows/format.yml
vendored
5
.github/workflows/format.yml
vendored
@@ -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:
|
||||
|
||||
2
.github/workflows/update.yml
vendored
2
.github/workflows/update.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user