Action to add a commit to a PR #24945
-
Hi, I’m currently trying to achieve the following: A user creates a PR, that triggers my action. Within this action, changes are made using a custom script. So far so good, since it works as expected until this point. Now, I want to create a commit and push it into this PR. What I’ve found is this action: Create or Update Pull Request · Actions · GitHub Marketplace · GitHub However, I’m either too stupid to use it right, or it doesn’t work as I’ve expected, because it creates a new PR instead of updating the original one. Are there alternatives to this action, or is there maybe a way to achieve this without an external action? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Just tried to manually commit & push, but that fails:
|
Beta Was this translation helpful? Give feedback.
-
I was able to make it work, using
Maybe this helps someone. |
Beta Was this translation helpful? Give feedback.
-
It didn't work for me , here is the code I used, it fails to push to the pr with no permission error |
Beta Was this translation helpful? Give feedback.
I was able to make it work, using
gh
:Maybe this helps someone.