-
Notifications
You must be signed in to change notification settings - Fork 5
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
Action Prettier fail #30
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the Workflow you have this line:
ref: ${{ github.head_ref }}
Which work fine if the pull request is not from a fork but as soon as the request came from a fork it will fail.
Could you use this instead:
ref: ${{ github.event.pull_request.head.ref }}
Which will work for Upstream and fork.
Ps It seem that if you use Checkout v2 this one work better:
ref: ${{ github.event.pull_request.head.sha }}
Thanks
The text was updated successfully, but these errors were encountered: