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: |