From 80acdf64c7bcd7a85700280f66828f09139ab32b Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Fri, 10 May 2024 14:19:26 +0900 Subject: [PATCH] Fix if syntax --- .github/workflows/snapshot.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 3fc11e4..a836d75 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -53,10 +53,11 @@ jobs: run: | count="$(git rev-list --count origin/${{ github.event.repository.default_branch }}..)" echo "count=${count}" | tee -a "$GITHUB_OUTPUT" - - run: git push origin '${{ steps.prepare-branch.outputs.pr_branch }}' - if: ${{ github.event_name != 'pull_request' }} && (steps.count-commits.outputs.count > 0) + - name: Push branch + run: git push origin '${{ steps.prepare-branch.outputs.pr_branch }}' + if: github.event_name != 'pull_request' && (steps.count-commits.outputs.count > 0) - name: Create PR - if: ${{ github.event_name != 'pull_request' }} && (steps.count-commits.outputs.count > 0) + if: github.event_name != 'pull_request' && (steps.count-commits.outputs.count > 0) env: GITHUB_TOKEN: ${{ github.token }} run: |