From 01d35014041248a38e88b8cd32c4982f40af20a3 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 26 Oct 2022 21:34:59 +0300 Subject: [PATCH] Update _update.yml --- .github/workflows/_update.yml | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/_update.yml b/.github/workflows/_update.yml index 955bdbce..7bf0d133 100644 --- a/.github/workflows/_update.yml +++ b/.github/workflows/_update.yml @@ -29,7 +29,20 @@ 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 + - run: npm run api:update + - run: npm run readme:update + - run: npm run status:update + - name: Commit Changes + if: ${{ !env.ACT }} + run: | + git add README.md + git commit -m "[Bot] Update README.md" + git add STATUS.md + git commit -m "[Bot] Update STATUS.md" + git status + git push -u origin ${{ steps.create-branch-name.outputs.BRANCH_NAME }} + - name: Deploy to gh-pages + uses: JamesIves/github-pages-deploy-action@v4.4.1 if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} with: branch: gh-pages @@ -40,8 +53,8 @@ jobs: commit-message: '[Bot] Update guides' clean: false force: false - - run: npm run api:update - - uses: JamesIves/github-pages-deploy-action@v4.4.1 + - name: Deploy to iptv-org/api + uses: JamesIves/github-pages-deploy-action@v4.4.1 if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} with: repository-name: iptv-org/api @@ -52,20 +65,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 - - if: ${{ !env.ACT }} - run: | - git add README.md - git commit -m "[Bot] Update README.md" - git status - git push -u origin ${{ steps.create-branch-name.outputs.BRANCH_NAME }} - - run: npm run status:update - - if: ${{ !env.ACT }} - run: | - git add STATUS.md - git commit -m "[Bot] Update STATUS.md" - git status - 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