You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi 👋
thanks for the great job you did on this action ,
I was trying to commit the formatted files into a PR made from a fork on a private repository (where this feature of running workflows from forks is enabled).
So I used this action
but it seems that it's trying to push to the base repo not the fork itself.
and I got this error
remote: Repository not found.
fatal: repository 'https://github.com/<org_name>/<repo_name>/' not found
Error: Process completed with exit code 128.
Knowing that there are couple of developers who forked this repo and want to run the formatting action when they open a PR to the base repo ,Is there any way to address my use case please ?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I'm not sure if what you want to do is possible. There are a number of issues with trying to make this kind of workflow work for forks. I don't really recommend it, and as I mention in the readme, I recommend using a slash command style "ChatOps" solution for these kind of operations on pull requests. See slash-command-dispatch for such a solution.
To try and fix your problem, you need to make sure that the pull request branch is being checked out. If you look at the example linked below you can see that it checks out github.head_ref. You will need to do something similar to checkout the pull request branch from the fork. https://github.com/peter-evans/autopep8#direct-push-with-on-pull_request-workflows
Hi 👋
thanks for the great job you did on this action ,
I was trying to commit the formatted files into a PR made from a fork on a private repository (where this feature of running workflows from forks is enabled).
So I used this action
but it seems that it's trying to push to the base repo not the fork itself.
and I got this error
Knowing that there are couple of developers who forked this repo and want to run the formatting action when they open a PR to the base repo ,Is there any way to address my use case please ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: