Skip to content
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

Open
Ekristoffe opened this issue Apr 1, 2022 · 0 comments
Open

Action Prettier fail #30

Ekristoffe opened this issue Apr 1, 2022 · 0 comments

Comments

@Ekristoffe
Copy link
Collaborator

Ekristoffe commented Apr 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant