feat(ansible_collection): specify version increment

!77
This commit is contained in:
2024-02-22 15:55:42 +09:30
parent d29064f149
commit 03609e2c9d
2 changed files with 18 additions and 2 deletions

View File

@ -67,15 +67,30 @@ variables:
# rc codes https://commitizen-tools.github.io/commitizen/exit_codes/
- | # Bump the version
if [ "0${VERSION_BUMP_INCREMENT}" != '0' ]; then
export BUMP_INCREMENT="--increment ${VERSION_BUMP_INCREMENT}";
fi;
if [ $CI_COMMIT_BRANCH == "development" ]; then
cz bump --files-only --yes --prerelease alpha
cz bump \
--files-only \
--yes \
${BUMP_INCREMENT} \
--prerelease alpha \
export VERSION_BUMPED=$?
elif [ $CI_COMMIT_BRANCH == "master" ]; then
cz bump --files-only --yes
cz bump \
--files-only \
${BUMP_INCREMENT} \
--yes
export VERSION_BUMPED=$?