-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
"fatal: bad object type" error when trying to upsert a (sliding) tag based on another extant tag #36
Comments
I also ran into the error message This may be a fundamentally different problem from yours but posting for anyone this might help:
|
I finally found something that seems to have worked. I changed the YAML stanza that I use to checkout the to-be-tagged repo to include the parameters
I'll close this issue now. (If @0ui or others want to reopen it, knock your-collective-selves out.) |
Hey @cmpilato, great news on solving the issue! Apologies for the delay—I was enjoying a holiday in the sun. ☀️ The In your code, focus on this section: It appears the problem might be after: git tag -fa "${TAG}" "${SHA}" -m "${MESSAGE}" Given your use of
GitHub Actions - Workflow Dispatch I think this might lead to the ref not existing in your action. As you observed, running I hope this sheds light! If you reencounter issues, let's revisit the investigation 👍🏻. |
I improved the documentation (see #39). |
Excellent! Hopefully, others will benefit from my missteps and your additional documentation. |
Thank you for finding a use case which I did not think of and, by doing so, improving the action ❤️🔥. |
I have multiple github repositories which employ the same github workflows. One such is a reusable workflow that's part of a simple, manually triggered action. The action accepts as input a tag name and a deployment environment target (
dev
,prod
, etc.). This workflow has a simple job: upsert a (sliding) tag into the repository calleddeployed-to-[environment]
, the sha of which matches that of the named "source" tag.Here's the workflow YML in full:
This same workflow behaves as expected on several repositories, but on one in particular, it fails with
fatal: bad object type
. And I cannot discern the cause of this failure (and thus what must be unique about this one repository).The checkout step seems to work fine, but then the tag creation just sorta unceremoniously falls over. And this happens whether the to-be-created tag already exists or not.
And unlike the OP from issue #28, I don't know that removing the ref from my checkout action is an option here, nor does it seem to be required for several of my other repositories that do this exact same thing.
The text was updated successfully, but these errors were encountered: