mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -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:
|
release:
|
||||||
jobs:
|
jobs:
|
||||||
- prepare_release:
|
- prepare_release:
|
||||||
when:
|
filters:
|
||||||
and:
|
branches:
|
||||||
- matches:
|
only: /release-.*/
|
||||||
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
|
||||||
|
|
|
@ -101,8 +101,7 @@ func (r *ReleaseHandler) Run() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// About NOCIRCLECI, see issue #12753.
|
if _, err := r.git("commit", "-a", "-m", fmt.Sprintf("%s Bump versions for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil {
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue