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
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ jobs:
set -euo pipefail
git config user.name "github-actions"
git config user.email "github-actions@github.com"
if git rev-parse "v${PACKAGE_VERSION}" >/dev/null 2>&1; then
echo "Tag v${PACKAGE_VERSION} already exists. Skipping tag push."
TAG="v${PACKAGE_VERSION}"

if git ls-remote --exit-code --tags origin "refs/tags/${TAG}" >/dev/null 2>&1; then
echo "Tag ${TAG} already exists on origin. Skipping tag push."
else
git tag "v${PACKAGE_VERSION}"
git push origin "v${PACKAGE_VERSION}"
git tag "${TAG}"
git push origin "${TAG}"
fi

- name: Create GitHub Release
Expand Down
Loading