-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Dangling Commits cause bad PR checkouts #646
Comments
Found this occurs when the runner side git repo ends up in the detached head state. When in that state, the action seems to be unable to find the appropriate commit, but "git checkout " in the repo does properly find the commit. |
We are hitting the same symptom as well - and possibly due to the same cause. I can see one dangling commit but unsure how to get the runner side git repo back into a good state |
In converting our build step from:
to:
We were then able to successfully snag the correct SHA for our staging level builds. So maybe I was just seeing a similar symptom but a totally different cause |
I created a branch from an older commit and added commits to this branch and I experiencing this build issue as well. @thastings3 solution seems to have resolved it for me. |
Related to #299 and #237, we've found that a dangling/unreachable commit following a force push is now being used as the merge commit on every PR in the repository. We've tested several prior versions of actions/checkout and have reproduced the result. This run occurs in a private repository, so I can't share the log and commit info unfortunately.
The text was updated successfully, but these errors were encountered: