ci: fix bash syntax in release-new-version workflow (#2690)

This commit is contained in:
Shankar Singh C
2023-10-26 00:17:51 +05:30
committed by GitHub
parent 1186f8c4e2
commit 4aca6edab3

View File

@ -83,7 +83,7 @@ jobs:
PREVIOUS_TAG="$(git tag --sort='version:refname' --merged | tail --lines 1)"
if [[ "$(cog bump --auto --dry-run)" == *"No conventional commits for your repository that required a bump"* ]]; then
NEW_TAG="$(cog bump --patch --dry-run)"
else if [[ "${PREVIOUS_TAG}" != "${NEW_TAG}" ]]
elif [[ "${PREVIOUS_TAG}" != "${NEW_TAG}" ]]; then
NEW_TAG="$(cog bump --auto --dry-run)"
fi
echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV