releaser: Rework the run conditions

Closes #12753
This commit is contained in:
Bjørn Erik Pedersen 2024-08-18 11:47:51 +02:00
parent c054cba042
commit 777534b2a4
No known key found for this signature in database
2 changed files with 12 additions and 4 deletions

View file

@ -98,9 +98,16 @@ workflows:
release: release:
jobs: jobs:
- prepare_release: - prepare_release:
filters: when:
branches: and:
only: /release-.*/ - matches:
pattern: "^release-"
value: << pipeline.git.branch >>
- not:
- matches:
pattern: "NOCIRCLECI"
value: << pipeline.trigger_parameters.github_app.commit_message >>
- build_container1: - build_container1:
requires: requires:
- prepare_release - prepare_release

View file

@ -101,7 +101,8 @@ func (r *ReleaseHandler) Run() error {
return err return err
} }
if _, err := r.git("commit", "-a", "-m", fmt.Sprintf("%s Bump versions for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil { // About NOCIRCLECI, see issue #12753.
if _, err := r.git("commit", "-a", "-m", fmt.Sprintf("%s Bump versions for release of %s\n\nNOCIRCLECI", commitPrefix, newVersion)); err != nil {
return err return err
} }