From c7024829392cd261f7c5fe2e011c19fc8bfdf106 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 27 Oct 2022 01:22:23 +0300 Subject: [PATCH] Update _update.yml --- .github/workflows/_update.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/_update.yml b/.github/workflows/_update.yml index d8d8bce8..8f6b0473 100644 --- a/.github/workflows/_update.yml +++ b/.github/workflows/_update.yml @@ -8,8 +8,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - run: echo "BRANCH_NAME=$(date +'bot/auto-update-%s')" >> $GITHUB_OUTPUT id: create-branch-name - run: git config user.name 'iptv-bot[bot]' @@ -55,17 +53,16 @@ jobs: commit-message: '[Bot] Deploy to iptv-org/api' clean: false - run: npm run readme:update - - if: ${{ !env.ACT }} + - run: npm run status:update + - name: Commit Changes + if: ${{ !env.ACT }} run: | git add README.md git commit --allow-empty -m "[Bot] Update README.md" - git status - - run: npm run status:update - - if: ${{ !env.ACT }} - run: | git add STATUS.md git commit --allow-empty -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