Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nick <[email protected]>
  • Loading branch information
adwk67 and NickLarsenNZ authored Dec 10, 2024
1 parent d7a89c2 commit ee48a9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions template/.github/workflows/build.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ jobs:
bin: cargo-set-version
- name: Update version if PR against main branch
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: cargo set-version --offline --workspace 0.0.0-pr${PR_NUMBER}
- name: Update version if PR against non-main branch
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-') }}
Expand Down Expand Up @@ -422,7 +424,9 @@ jobs:
bin: cargo-set-version
- name: Update version if PR against main branch
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: cargo set-version --offline --workspace 0.0.0-pr${PR_NUMBER}
- name: Update version if PR against non-main branch
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-') }}
Expand Down

0 comments on commit ee48a9a

Please sign in to comment.