Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/actions/bump-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ runs:
VERSION=${{ steps.version.outputs.version }}
TAG_PREFIX=${{ inputs.tag-prefix }}

if git ls-remote --tags --exit-code origin "${TAG_PREFIX}-${VERSION}"; then
echo "Tag ${TAG_PREFIX}-${VERSION} already exists."
if git ls-remote --tags --exit-code origin "${TAG_PREFIX}${VERSION}"; then
echo "Tag ${TAG_PREFIX}${VERSION} already exists."
else
git tag "${TAG_PREFIX}-${VERSION}"
git push origin "${TAG_PREFIX}-${VERSION}"
git tag "${TAG_PREFIX}${VERSION}"
git push origin "${TAG_PREFIX}${VERSION}"
fi

- name: Create release
Expand All @@ -120,11 +120,11 @@ runs:
VERSION=${{ steps.version.outputs.version }}
TAG_PREFIX=${{ inputs.tag-prefix }}

if gh release view "${TAG_PREFIX}-${VERSION}" &>/dev/null; then
echo "Release ${TAG_PREFIX}-${VERSION} already exists."
if gh release view "${TAG_PREFIX}${VERSION}" &>/dev/null; then
echo "Release ${TAG_PREFIX}${VERSION} already exists."
exit 0
fi

gh release create "${TAG_PREFIX}-${VERSION}" \
gh release create "${TAG_PREFIX}${VERSION}" \
--title "Release ${VERSION}" \
--notes "Automated release for version ${VERSION}."
Loading