File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 13
13
- trying
14
14
- " renovate/**"
15
15
tags :
16
- - ' [0-9][0-9].[0-9]+.[0-9]+'
16
+ - ' [0-9][0-9].[0-9]+.[0-9]+(-rc[0-9]+)? '
17
17
pull_request :
18
18
merge_group :
19
19
schedule :
@@ -345,7 +345,8 @@ jobs:
345
345
crate : cargo-edit
346
346
bin : cargo-set-version
347
347
- name : Update version if PR
348
- if : ${{ github.event_name == 'pull_request' }}
348
+ # For PRs to be merged against a release branch, the version has already been set, in which case ignore this step.
349
+ if : ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
349
350
run : cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
350
351
351
352
# Recreate charts and publish charts and docker image. The "-e" is needed as we want to override the
@@ -411,7 +412,8 @@ jobs:
411
412
crate : cargo-edit
412
413
bin : cargo-set-version
413
414
- name : Update version if PR
414
- if : ${{ github.event_name == 'pull_request' }}
415
+ # For PRs to be merged against a release branch, the version has already been set, in which case ignore this step.
416
+ if : ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
415
417
run : cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
416
418
- name : Build manifest list
417
419
run : |
You can’t perform that action at this time.
0 commit comments