Skip to content

Conversation

@graycreate
Copy link
Member

Summary

Fix release workflow failure when using "Force release even if version unchanged".

Problem

When using the force release option, the workflow:

  1. Deletes the remote tag ✅
  2. Tries to create the tag locally ❌ (fails because local tag still exists)

Error from failed run:

fatal: tag 'v1.1.19' already exists

Solution

Added git tag -d "$TAG_NAME" 2>/dev/null || true before creating the new tag.

This matches the ULPB-iOS release workflow behavior.

Reference

🤖 Generated with Claude Code

When using "Force release even if version unchanged", the workflow
deletes the remote tag but not the local tag. This causes the
`git tag -a` command to fail with "tag already exists".

Added `git tag -d` before creating the tag to handle force releases.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings November 30, 2025 01:05
Copilot finished reviewing on behalf of graycreate November 30, 2025 01:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a workflow failure that occurred when using the "Force release even if version unchanged" option. The issue was that while the remote tag was being deleted, the local tag remained, causing the tag creation to fail with "tag already exists".

Key changes:

  • Added deletion of local git tag before creating a new one during force release

@graycreate graycreate merged commit 9ee2c75 into main Nov 30, 2025
12 checks passed
@graycreate graycreate deleted the fix/release-force-tag branch November 30, 2025 01:08
@github-actions
Copy link

Code Coverage Report ❌

Current coverage: 18.43%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants