API workflow_dispatch not running in workflow #25685
-
Hi 👍
When I run the request in the local environment, it works and I can see the flow running in the ACTIONS tab of the repository. When I run the same script in a job with GitHub Actions, the output is the same but the workflow doesn’t run (No errors - code 204) Any ideas? 😕 PS: I’m using the same configuration in both tests (Local env and GitHub) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The default token available to a GitHub Action (
The reason this works locally is that you’re authenticated as yourself, so for this to work inside a GitHub Action you’ll need to use a Personal Access Token instead. |
Beta Was this translation helpful? Give feedback.
-
Thanks @shrink, you’re right 💪 . I was using I was confused because the API endpoint response did not have an error. |
Beta Was this translation helpful? Give feedback.
The default token available to a GitHub Action (
GITHUB_TOKEN
) cannot trigger other Actions.The reason this works locally is that you’re authenticated as yourself, so for this to work inside a GitHub Action you’ll need to use a Personal Access Token instead.