diff --git a/.github/workflows/_update.yml b/.github/workflows/_update.yml index d10116b4..9849d407 100644 --- a/.github/workflows/_update.yml +++ b/.github/workflows/_update.yml @@ -29,29 +29,7 @@ jobs: - if: ${{ !env.ACT }} run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run programs:load - run: npm run guides:update - - uses: JamesIves/github-pages-deploy-action@v4.4.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] Update guides' - clean: false - force: false - run: npm run api:update - - uses: JamesIves/github-pages-deploy-action@v4.4.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 - run: npm run readme:update - run: npm run status:update - name: Commit Changes @@ -65,8 +43,28 @@ jobs: - name: Push to origin if: ${{ !env.ACT }} run: | - git remote set-url origin https://github.com/iptv-org/epg.git git push -u origin ${{ steps.create-branch-name.outputs.BRANCH_NAME }} + - uses: JamesIves/github-pages-deploy-action@v4.4.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] Update guides' + clean: false + - uses: JamesIves/github-pages-deploy-action@v4.4.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: repo-sync/pull-request@v2 if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} id: pull-request