Skip to content

Commit

Permalink
fix: make conditions mutually exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
adwk67 committed Jan 28, 2025
1 parent 20d91e7 commit 508ef88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/.github/workflows/build.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ jobs:
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
# We can't rely on cargo set-version here as we will break semver rules when changing the version to make it
# specific to this PR e.g. 1.2.0 --> 1.2.0-pr678, so set it manually.
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref != 'main' }}
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
shell: bash
Expand Down Expand Up @@ -440,7 +440,7 @@ jobs:
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
# We can't rely on cargo set-version here as we will break semver rules when changing the version to make it
# specific to this PR e.g. 1.2.0 --> 1.2.0-pr678, so set it manually.
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref != 'main' }}
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
shell: bash
Expand Down

0 comments on commit 508ef88

Please sign in to comment.