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 @@ -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: |
You can’t perform that action at this time.
0 commit comments