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 @@ -349,7 +349,9 @@ jobs:
349
349
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
350
350
env:
351
351
PR_NUMBER: ${{ github.event.pull_request.number }}
352
- run: cargo set-version --offline --workspace 0.0.0-pr${PR_NUMBER}
352
+ run: |
353
+ PR_VERSION="0.0.0-pr${PR_NUMBER}"
354
+ cargo set-version --offline --workspace "$PR_VERSION"
353
355
- name: Update version if PR against non-main branch
354
356
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
355
357
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-') }}
@@ -426,7 +428,9 @@ jobs:
426
428
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
427
429
env:
428
430
PR_NUMBER: ${{ github.event.pull_request.number }}
429
- run: cargo set-version --offline --workspace 0.0.0-pr${PR_NUMBER}
431
+ run: |
432
+ PR_VERSION="0.0.0-pr${PR_NUMBER}"
433
+ cargo set-version --offline --workspace "$PR_VERSION"
430
434
- name: Update version if PR against non-main branch
431
435
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
432
436
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