mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
edit printout
This commit is contained in:
@@ -7,7 +7,7 @@ declare rc=0
|
|||||||
|
|
||||||
git log $(git describe --tags --abbrev=0)..HEAD --oneline | tee /tmp/release-changelogs.txt
|
git log $(git describe --tags --abbrev=0)..HEAD --oneline | tee /tmp/release-changelogs.txt
|
||||||
|
|
||||||
if [[ $(cat /tmp/release-changelogs.txt | grep fix) || $(cat /tmp/release-changelogs.txt | grep patch) ]]; then
|
if [[ $(cat /tmp/release-changelogs.txt | grep fix) || $(cat /tmp/release-changelogs.txt | grep patch) || $(cat /tmp/release-changelogs.txt | grep chore) ]]; then
|
||||||
PATCH=true
|
PATCH=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -32,9 +32,9 @@ echo -e "\n"
|
|||||||
echo -e "================================================================================="
|
echo -e "================================================================================="
|
||||||
|
|
||||||
if [[ $MAJOR == false && $MINOR == false ]]; then
|
if [[ $MAJOR == false && $MINOR == false ]]; then
|
||||||
echo "Release type: patch"
|
echo "Recommended release type: patch"
|
||||||
elif [[ $MAJOR == false && $MINOR == true ]]; then
|
elif [[ $MAJOR == false && $MINOR == true ]]; then
|
||||||
echo "Release type: minor"
|
echo "Recommended release type: minor"
|
||||||
else
|
else
|
||||||
echo "Release type: major"
|
echo "Recommended release type: major"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user