File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,9 @@ jobs:
347
347
bin: cargo-set-version
348
348
- name: Update version if PR against main branch
349
349
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
350
- run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
350
+ env:
351
+ PR_NUMBER: ${{ github.event.pull_request.number }}
352
+ run: cargo set-version --offline --workspace 0.0.0-pr${PR_NUMBER}
351
353
- name: Update version if PR against non-main branch
352
354
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
353
355
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-') }}
@@ -422,7 +424,9 @@ jobs:
422
424
bin: cargo-set-version
423
425
- name: Update version if PR against main branch
424
426
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
425
- run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
427
+ env:
428
+ PR_NUMBER: ${{ github.event.pull_request.number }}
429
+ run: cargo set-version --offline --workspace 0.0.0-pr${PR_NUMBER}
426
430
- name: Update version if PR against non-main branch
427
431
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
428
432
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-') }}
You can’t perform that action at this time.
0 commit comments