mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
releaser: Rework the run conditions
Now after actually reading the CircleCI docs... Closes #12753
This commit is contained in:
parent
73d32e7737
commit
702b1e8b81
2 changed files with 11 additions and 1 deletions
|
@ -96,6 +96,15 @@ jobs:
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
release:
|
release:
|
||||||
|
when:
|
||||||
|
and:
|
||||||
|
- matches:
|
||||||
|
pattern: "^release-"
|
||||||
|
value: << pipeline.git.branch >>
|
||||||
|
- not:
|
||||||
|
matches:
|
||||||
|
pattern: "NOCIRCLECI"
|
||||||
|
value: << pipeline.trigger_parameters.github_app.commit_message >>
|
||||||
jobs:
|
jobs:
|
||||||
- prepare_release:
|
- prepare_release:
|
||||||
filters:
|
filters:
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue