Skip to content

Commit

Permalink
fix: force the new version tag to apply before generating changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
robcoward committed Jul 24, 2024
1 parent cef61f3 commit 6aa1182
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,15 @@ conventional-recommended-bump -p conventionalcommits --commit-path ${TF_MODULE_P
NEW_VERSION=$(increment_version ${LAST_VERSION} ${INCREMENT_TYPE})
info "New version: ${NEW_VERSION}"

# git tag -a "${TAG_PREFIX}${NEW_VERSION}" -m "Release ${TAG_PREFIX}${NEW_VERSION}"
git tag "${TAG_PREFIX}${NEW_VERSION}"
info "Tagging release: ${TAG_PREFIX}${NEW_VERSION}"
run git tag -f "${TAG_PREFIX}${NEW_VERSION}"
if [[ "${status}" == "0" ]]; then
success "Success!"
else
fail "Error!"
exit 1
fi


info "Generating CHANGELOG.md"
if [[ ${DEBUG} == "true" ]]; then
Expand Down

0 comments on commit 6aa1182

Please sign in to comment.