fix: use latest if running on tag #8

Merged
argoyle merged 1 commits from handle-tag-correctly into main 2024-10-22 09:11:50 +00:00
+9 -4
View File
@@ -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