Skip to content

Commit e503373

Browse files
adwk67NickLarsenNZ
andauthored
Update template/.github/workflows/build.yml.j2
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
1 parent 29f4468 commit e503373

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/.github/workflows/build.yml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,11 @@ jobs:
423423
- name: Update version if PR against non-main branch
424424
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
425425
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
426+
env:
427+
PR_NUMBER: ${{ github.event.pull_request.number }}
426428
run: |
427429
MANIFEST_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')
428-
PR_VERSION="${MANIFEST_VERSION}-pr${{ github.event.pull_request.number }}"
430+
PR_VERSION="${MANIFEST_VERSION}-pr${PR_NUMBER}"
429431
cargo set-version --offline --workspace "$PR_VERSION"
430432
- name: Build manifest list
431433
run: |

0 commit comments

Comments
 (0)