-
Notifications
You must be signed in to change notification settings - Fork 1
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
GitHub Actions checks out repo for PRs in detached head #17
Comments
GitHub checks out the repo in a detached head state. We use a trick noted in the task to fix it. Try 2...
GitHub checks out the repo in a detached head state. We use a trick noted in the task to fix it. Try 3...
None of the workarounds actually work for us. The current output of "git all branches" is: "* pull-request\n remotes/pull/1/merge\n" This is... not what we are expecting. Not sure how to resolve this one. @robertdfrench we'll have to dig into this a little more. |
@robertdfrench I've been thinking about what to do here. I wonder if it would be better for our integration tests to have a setup step create a new repo. That way we don't rely on the current repo state for testing? Hopefully this wouldn't add too much overheard to our test running time. Would also help with isolation as we could set it up exactly like we want. |
GitHub checks out the repo in a detached head state. We use a trick noted in the task to fix it.
GitHub checks out the repo in a detached head state. We use a trick noted in the task to fix it. Try 2...
GitHub checks out the repo in a detached head state. We use a trick noted in the task to fix it. Try 3...
GitHub decided that when it runs Actions, it checks out PRs in detached head. See info here: actions/checkout#6
This is a problem for us because we need a working git and repo to run integration tests.
The text was updated successfully, but these errors were encountered: