-
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
Action fails with output of dist/index.js and without error #331
Comments
I'm having the same issue. I wonder if it's related to #327 |
Been debugging this and its a permissions error - the action doesn't have permission to create a pull request in your repository. You can enable this by visiting "Settings -> Actions -> General" and enabling "Allow GitHub Actions to create and approve pull requests" I also added the following to the workflow permissions:
pull-requests: write
contents: write |
Great catch! I had already activated "Allow GitHub Actions to create and approve pull requests" but was missing the following in my workflow: pull-requests: write under I only wish the error message would be better in this case. |
I have the following config
and these NPM scripts in my
package.json
file:when trying to run the action with changesets available, I'm getting the following output which does not really help me diagnose the issue:
it seems the version script runs succesfully, the action then fails with
/home/runner/work/_actions/changesets/action/v1.4.5/dist/index.js:1
and the compiled output of the action script?
any ideas?
The text was updated successfully, but these errors were encountered: