Action that opens a PR not trigger another workflow #25379
-
I have a GitHub action that opens a pull request when there are commits to a specific branch:
And I also have a workflow that runs with event When the there’s a commit to the
The second workflow isn’t currently running. I suspect it may be related to the GITHUB_TOKEN permissions, but I can’t be sure. Any pointers? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Unless the token is your personal access token, actions will not trigger other acctions - to prevent endless loops. To remedy that, simply create a personal access token, store it as a secret and use that secret instead. |
Beta Was this translation helpful? Give feedback.
-
I did try that, by passing the PAT to the “open pull request” job. It didn’t seem to rectify the issue. |
Beta Was this translation helpful? Give feedback.
-
Just asking, isn’t that a syntax error: |
Beta Was this translation helpful? Give feedback.
-
yes, it was a copy/paste fail - the original workflow seems fine |
Beta Was this translation helpful? Give feedback.
Unless the token is your personal access token, actions will not trigger other acctions - to prevent endless loops.
To remedy that, simply create a personal access token, store it as a secret and use that secret instead.