Revert "releaser: Rework the run conditions"

This reverts commit 777534b2a4.

Circle ci throws validation errors:

```
Config does not conform to schema: {:workflows {:release {:jobs [{:prepare_release (not (map? nil)), :when {:and disallowed-key}} nil nil nil]}}}
```
This commit is contained in:
Bjørn Erik Pedersen 2024-08-18 12:00:47 +02:00
parent 777534b2a4
commit 73d32e7737
No known key found for this signature in database
2 changed files with 4 additions and 12 deletions

View file

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

View file

@ -101,8 +101,7 @@ func (r *ReleaseHandler) Run() error {
return err
}
// 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 {
if _, err := r.git("commit", "-a", "-m", fmt.Sprintf("%s Bump versions for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil {
return err
}