mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update auto-update.yml
This commit is contained in:
parent
a9be2eddd1
commit
4ec6082019
1 changed files with 19 additions and 11 deletions
30
.github/workflows/auto-update.yml
vendored
30
.github/workflows/auto-update.yml
vendored
|
@ -8,10 +8,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: mkdir -p scripts/data
|
- name: Delete .artifacts/ folder
|
||||||
- run: curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
|
if: ${{ env.ACT }}
|
||||||
- run: curl -L -o scripts/data/countries.json https://iptv-org.github.io/api/countries.json
|
run: rm -rf .artifacts/
|
||||||
- run: curl -L -o scripts/data/subdivisions.json https://iptv-org.github.io/api/subdivisions.json
|
- name: Download data from API
|
||||||
|
run: |
|
||||||
|
mkdir -p scripts/data
|
||||||
|
curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
|
||||||
|
curl -L -o scripts/data/countries.json https://iptv-org.github.io/api/countries.json
|
||||||
|
curl -L -o scripts/data/subdivisions.json https://iptv-org.github.io/api/subdivisions.json
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: data
|
name: data
|
||||||
|
@ -22,7 +27,7 @@ jobs:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: node scripts/commands/create-queue.js --max-clusters=30000 --days=2
|
- run: node scripts/commands/create-queue.js --max-clusters=256 --days=2
|
||||||
- run: node scripts/commands/create-matrix.js
|
- run: node scripts/commands/create-matrix.js
|
||||||
id: create-matrix
|
id: create-matrix
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
|
@ -37,9 +42,9 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
# matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
|
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
|
||||||
matrix:
|
# matrix:
|
||||||
cluster_id: [1]
|
# cluster_id: [1]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
@ -104,9 +109,12 @@ jobs:
|
||||||
name: programs.json
|
name: programs.json
|
||||||
path: .gh-pages/api/programs.json
|
path: .gh-pages/api/programs.json
|
||||||
- run: node scripts/commands/update-readme.js
|
- run: node scripts/commands/update-readme.js
|
||||||
- run: git add README.md
|
- name: Commit changes in README.md
|
||||||
- run: git commit -m "[Bot] Update README.md"
|
if: ${{ !env.ACT }}
|
||||||
- run: git push -u origin ${{ steps.create-branch-name.outputs.branch_name }}
|
run: |
|
||||||
|
git add README.md
|
||||||
|
git commit -m "[Bot] Update README.md"
|
||||||
|
git push -u origin ${{ steps.create-branch-name.outputs.branch_name }}
|
||||||
- uses: tibdex/github-app-token@v1
|
- uses: tibdex/github-app-token@v1
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
id: create-app-token
|
id: create-app-token
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue