diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 4425ae873d..bc39e7bb00 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -28,7 +28,7 @@ jobs: name: data path: scripts/data - run: npm install - - run: npm run db:create -- --max-clusters=30000 + - run: npm run db:create - uses: actions/upload-artifact@v2 with: name: database @@ -43,9 +43,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: FedericoCarboni/setup-ffmpeg@v1 @@ -105,11 +105,12 @@ jobs: path: scripts/database - run: npm run playlist:update - run: npm run playlist:generate + - run: npm run db:export + - run: npm run readme:update - uses: actions/upload-artifact@v2 with: name: logs path: scripts/logs - - run: npm run readme:update - name: Commit Changes if: ${{ !env.ACT }} run: | @@ -131,31 +132,30 @@ jobs: This pull request is created by [auto-update][1] workflow. [1]: https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }} - # - uses: juliangruber/merge-pull-request-action@v1 - # if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - # with: - # github-token: ${{ secrets.PAT }} - # number: ${{ steps.pull-request.outputs.pr_number }} - # method: squash - # - uses: JamesIves/github-pages-deploy-action@4.1.1 - # if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - # with: - # branch: gh-pages - # folder: .gh-pages - # token: ${{ steps.create-app-token.outputs.token }} - # git-config-name: iptv-bot[bot] - # git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - # commit-message: '[Bot] Generate playlists' - # clean: false - # - run: npm run db:export - # - uses: JamesIves/github-pages-deploy-action@4.1.1 - # if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - # with: - # repository-name: iptv-org/api - # branch: gh-pages - # folder: .api - # token: ${{ steps.create-app-token.outputs.token }} - # git-config-name: iptv-bot[bot] - # git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - # commit-message: '[Bot] Deploy to iptv-org/api' - # clean: false + - uses: JamesIves/github-pages-deploy-action@4.1.1 + if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} + with: + branch: gh-pages + folder: .gh-pages + token: ${{ steps.create-app-token.outputs.token }} + git-config-name: iptv-bot[bot] + git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com + commit-message: '[Bot] Generate playlists' + clean: false + - uses: JamesIves/github-pages-deploy-action@4.1.1 + if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} + with: + repository-name: iptv-org/api + branch: gh-pages + folder: .api + token: ${{ steps.create-app-token.outputs.token }} + git-config-name: iptv-bot[bot] + git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com + commit-message: '[Bot] Deploy to iptv-org/api' + clean: false + - uses: juliangruber/merge-pull-request-action@v1 + if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} + with: + github-token: ${{ secrets.PAT }} + number: ${{ steps.pull-request.outputs.pr_number }} + method: squash