Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2022-01-31 20:05:22 +03:00
parent a9be2eddd1
commit 4ec6082019

View file

@ -8,10 +8,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: mkdir -p scripts/data
- run: curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
- run: curl -L -o scripts/data/countries.json https://iptv-org.github.io/api/countries.json
- run: curl -L -o scripts/data/subdivisions.json https://iptv-org.github.io/api/subdivisions.json
- name: Delete .artifacts/ folder
if: ${{ env.ACT }}
run: rm -rf .artifacts/
- 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
with:
name: data
@ -22,7 +27,7 @@ jobs:
node-version: '14'
cache: 'npm'
- 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
id: create-matrix
- uses: actions/upload-artifact@v2
@ -37,9 +42,9 @@ jobs:
continue-on-error: true
strategy:
fail-fast: false
# matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
matrix:
cluster_id: [1]
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
# matrix:
# cluster_id: [1]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
@ -104,9 +109,12 @@ jobs:
name: programs.json
path: .gh-pages/api/programs.json
- run: node scripts/commands/update-readme.js
- run: git add README.md
- run: git commit -m "[Bot] Update README.md"
- run: git push -u origin ${{ steps.create-branch-name.outputs.branch_name }}
- name: Commit changes in README.md
if: ${{ !env.ACT }}
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
if: ${{ !env.ACT }}
id: create-app-token