fix(ansible_collection): create git tag before changelog

required so that cz can properly generate changelog.

!75 nofusscomputing/projects/ansible/collections/ci-test!1
This commit is contained in:
2024-02-16 22:46:17 +09:30
parent 1716032215
commit 1d67a0aa45

View File

@ -126,12 +126,19 @@ variables:
fi;
- | # create git tag, if changed
if [ "0$VERSION_BUMPED" == "00" ]; then
git tag -m "$(cat artifacts/incremental_changelog.txt)" ${NEW_VERSION} ${CHANGE_COMMIT};
fi;
- | # changelog since last version - for development branch
echo "changelog since last version - for development branch";
if [ "0$VERSION_BUMPED" == "00" ]; then
cz changelog --incremental --dry-run > artifacts/incremental_changelog.txt
cz changelog --dry-run "${NEW_VERSION}" > artifacts/incremental_changelog.txt
ls -lR artifacts/
@ -333,13 +340,6 @@ variables:
fi;
- | # create git tag, if changed
if [ "0$VERSION_BUMPED" == "00" ]; then
git tag -m "$(cat artifacts/incremental_changelog.txt)" ${NEW_VERSION} ${CHANGE_COMMIT};
fi;
- | # push git tag to origin
if [ "0$VERSION_BUMPED" == "00" ]; then