fix: use latest if running on tag #8
@@ -147,10 +147,15 @@ unbound_release_prepare_release:
|
|||||||
GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
|
GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
|
||||||
GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs
|
GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs
|
||||||
script:
|
script:
|
||||||
- 'echo "Generating changelog"'
|
- |
|
||||||
- 'git-cliff --bump --unreleased --strip header > CHANGES.md'
|
echo "Generating changelog"
|
||||||
- 'echo "Bumping version"'
|
if [ -n "${CI_COMMIT_TAG}" ]; then
|
||||||
- 'git-cliff --bumped-version 2>/dev/null > VERSION'
|
git-cliff --bump --latest --strip header > CHANGES.md
|
||||||
|
else
|
||||||
|
git-cliff --bump --unreleased --strip header > CHANGES.md
|
||||||
|
fi
|
||||||
|
echo "Bumping version"
|
||||||
|
git-cliff --bumped-version 2>/dev/null > VERSION
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- CHANGES.md
|
- CHANGES.md
|
||||||
|
|||||||
Reference in New Issue
Block a user