Skip to content

Commit

Permalink
fix: correcting parameters on conventional-recommended-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
robcoward committed Jul 24, 2024
1 parent 0d205c6 commit 6feb0a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ else
LAST_VERSION=$(echo "${LAST_TAG}" | sed "s/${TAG_PREFIX}//")
fi

if [[ "${DEBUG}" == "true" ]]; then
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit ${GIT_FILTER} -- ${TF_MODULE_PATH}
fi

NUM_COMMITS=$(git log --oneline ${GIT_FILTER} -- ${TF_MODULE_PATH} | wc -l)
info "Number of commits since last release: ${NUM_COMMITS}"
Expand All @@ -70,9 +73,9 @@ if [[ "${NUM_COMMITS}" == "0" ]]; then
exit 0
fi

INCREMENT_TYPE=$(conventional-recommended-bump -p conventionalcommits --commit-path ${TF_MODULE_PATH})
INCREMENT_TYPE=$(conventional-recommended-bump -p conventionalcommits --commit-path ${TF_MODULE_PATH} -g ${CONFIG} -t ${TAG_PREFIX})
echo -n "Version Increment: "
conventional-recommended-bump -p conventionalcommits --commit-path ${TF_MODULE_PATH} -v
conventional-recommended-bump -p conventionalcommits --commit-path ${TF_MODULE_PATH} -g ${CONFIG} -t ${TAG_PREFIX} -v

NEW_VERSION=$(increment_version ${LAST_VERSION} ${INCREMENT_TYPE})
info "New version: ${NEW_VERSION}"
Expand Down

0 comments on commit 6feb0a6

Please sign in to comment.