diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-08-18 12:00:47 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-08-18 12:00:47 +0200 |
commit | 73d32e7737082118a48adb8db3ff1ed7407f4d3f (patch) | |
tree | 4cab6cbd38152e5b3e6078611d33a4d06b5f453d | |
parent | 777534b2a46127ad0392562b4de56ba3ff70a810 (diff) | |
download | hugo-73d32e7737082118a48adb8db3ff1ed7407f4d3f.tar.gz hugo-73d32e7737082118a48adb8db3ff1ed7407f4d3f.zip |
Revert "releaser: Rework the run conditions"
This reverts commit 777534b2a46127ad0392562b4de56ba3ff70a810.
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]}}}
```
-rw-r--r-- | .circleci/config.yml | 13 | ||||
-rw-r--r-- | releaser/releaser.go | 3 |
2 files changed, 4 insertions, 12 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 52ce01f6a..0ff955936 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/releaser/releaser.go b/releaser/releaser.go index 1cc8413e9..f2244842a 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -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 } |