Skip to content

Commit 29f4468

Browse files
committed
added comment
1 parent d353a4c commit 29f4468

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

template/.github/workflows/build.yml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ jobs:
348348
if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
349349
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
350350
- 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.
351352
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
352353
run: |
353354
MANIFEST_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')
@@ -420,6 +421,7 @@ jobs:
420421
if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
421422
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
422423
- 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.
423425
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
424426
run: |
425427
MANIFEST_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')

0 commit comments

Comments
 (0)