File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -350,9 +350,11 @@ jobs:
350
350
- name: Update version if PR against non-main branch
351
351
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
352
352
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
353
+ env:
354
+ PR_NUMBER: ${{ github.event.pull_request.number }}
353
355
run: |
354
356
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 }"
356
358
cargo set-version --offline --workspace "$PR_VERSION"
357
359
358
360
# Recreate charts and publish charts and docker image. The "-e" is needed as we want to override the
You can’t perform that action at this time.
0 commit comments