File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ jobs:
348
348
if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
349
349
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
350
350
- name: Update version if PR against non-main branch
351
+ # For PRs to be merged against a release branch, use the version that has already been set in the calling script.
351
352
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
352
353
run: |
353
354
MANIFEST_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')
@@ -420,6 +421,7 @@ jobs:
420
421
if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
421
422
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
422
423
- name: Update version if PR against non-main branch
424
+ # For PRs to be merged against a release branch, use the version that has already been set in the calling script.
423
425
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
424
426
run: |
425
427
MANIFEST_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')
You can’t perform that action at this time.
0 commit comments