Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Fix if syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed May 10, 2024
1 parent 2df59ff commit 80acdf6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 80acdf6

Please sign in to comment.