Skip to content
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
6 changes: 3 additions & 3 deletions .github/workflows/reusable-create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ jobs:
tag="${{ needs.validate.outputs.normalized-tag }}"
echo "Tag '$tag' already exists. Checking for deletion requirements..."

if git ls-remote --tags origin | grep -q "$tag"; then
if git ls-remote --tags origin "refs/tags/$tag" | grep -q "refs/tags/$tag"; then
echo "::notice::Remote tag '$tag' exists. Attempting to delete..."
if git push --delete origin "$tag"; then
if git ls-remote --tags origin "$tag" | grep -q "$tag"; then
if git ls-remote --tags origin "refs/tags/$tag" | grep -q "refs/tags/$tag"; then
echo "::error::Failed to delete remote tag '$tag'. Exiting."
exit 1
fi
Expand All @@ -121,7 +121,7 @@ jobs:
GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
run: |
tag="${{ needs.validate.outputs.normalized-tag }}"
git tag "$tag" HEAD
git tag "$tag" ${{ inputs.commit-id }}
if git push origin "$tag"; then
echo "::notice::Successfully created and pushed tag '$tag'."
else
Expand Down
Loading