Skip to content

Commit b694836

Browse files
adwk67NickLarsenNZ
andauthored
Update template/.github/workflows/build.yml.j2
Co-authored-by: Nick <[email protected]>
1 parent e503373 commit b694836

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
@@ -350,9 +350,11 @@ jobs:
350350
- name: Update version if PR against non-main branch
351351
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
352352
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
353+
env:
354+
PR_NUMBER: ${{ github.event.pull_request.number }}
353355
run: |
354356
MANIFEST_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')
355-
PR_VERSION="${MANIFEST_VERSION}-pr${{ github.event.pull_request.number }}"
357+
PR_VERSION="${MANIFEST_VERSION}-pr${PR_NUMBER}"
356358
cargo set-version --offline --workspace "$PR_VERSION"
357359

358360
# Recreate charts and publish charts and docker image. The "-e" is needed as we want to override the

0 commit comments

Comments
 (0)