mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
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:
parent
777534b2a4
commit
73d32e7737
2 changed files with 4 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue