From 28661faccd7141a4044aa99dc3133ae1627a4f34 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 22 Feb 2022 08:13:16 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index da9d8b554c..805a640164 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -109,6 +109,16 @@ jobs: with: name: logs path: scripts/logs + - run: npm run readme:update + - name: Commit Changes + if: ${{ !env.ACT }} + run: | + git add streams/* + git commit -m "[Bot] Update streams" + git add README.md + git commit -m "[Bot] Update README.md" + git status + git push -u origin ${{ steps.create-branch-name.outputs.branch_name }} - uses: JamesIves/github-pages-deploy-action@4.1.1 if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} with: @@ -118,6 +128,7 @@ jobs: 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' }} @@ -130,15 +141,6 @@ jobs: 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 - - name: Commit Changes - if: ${{ !env.ACT }} - run: | - git add streams/* - git commit -m "[Bot] Update streams" - git add README.md - git commit -m "[Bot] Update README.md" - git push -u origin ${{ steps.create-branch-name.outputs.branch_name }} - uses: repo-sync/pull-request@v2 if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} id: pull-request