-
Notifications
You must be signed in to change notification settings - Fork 218
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
Style (pull_request) always fails on Git detached HEAD error #683
Comments
Confirmed and I see the same on the document (pull_request) workflow. Are the @arisp99 (who authored the workflows) any idea, what's going on here? |
Based on actions/checkout#124, it seems that when the code is checked out during the |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue |
Describe the bug
When creating a pull request, two workflow runs will be created for the {styler} workflow. The Style (push) run is successful but Style (pull_request) always fails at the "Commit and push changes" step on a Git detached HEAD error.
To Reproduce
Example pull request: https://github.com/nanxstats/stylertest/pull/1
Full log for failed run: https://github.com/nanxstats/stylertest/actions/runs/3875928032/jobs/6609199407
Expected behavior
Both runs of the workflow should be successful.
Additional context
The error message often looks like this:
The text was updated successfully, but these errors were encountered: