-
Notifications
You must be signed in to change notification settings - Fork 9
Fetch git tags before running gem release #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v1
Are you sure you want to change the base?
Conversation
|
Is this better served by setting the |
|
@segiddins Thanks for the feedback! I considered that, but I wanted to avoid requiring the user to configure By adding That said, if the preference is to have users set Let me know what you'd prefer! |
|
Maybe we |
|
@segiddins Thanks for the suggestion! I initially tried using Instead, I found that
Would you be open to using |
|
+1 for automatic fetching tags. I've bumped into the same error and couldn't understand what was wrong. I added - uses: actions/checkout@v4
with:
fetch-tags: trueBut it would be nice to make this workflow idempotent |
The release gem action does not fetch the tags, so it is necessary to check them out. Ref: rubygems/release-gem#17 (comment)
|
To everybody who stumble accross that PR. A possible workaround would be to use another tagging pattern. Instead of A successful release: https://github.com/sitediver/alchemy-mission_control-jobs/actions/runs/19404149753 |

Adds a
git fetch --tagsstep to ensure that tags are fetched before running thebundle exec rake releasetask.This step is necessary to avoid errors when trying to push a tag that already exists remote. Without fetching the tags, the release process can fail with an error like:
This change ensures that the action fetches the latest tags from the remote repository, preventing conflicts when tags already exist, and allows the release process to continue smoothly.