How can I trigger a separate workflow in another repo, without it affecting the main build pipeline? #139806
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @Leramir1 , have you got an answer for your question ? |
Beta Was this translation helpful? Give feedback.
-
Hi @AbderrahmenISSA, yes, I have! It all starts with GitHub workflow triggers: I've identified two key scenarios where automatically triggering a separate workflow (pipeline) differs:
Using workflow_dispatch
Using workflow_run |
Beta Was this translation helpful? Give feedback.
Hi @AbderrahmenISSA, yes, I have! It all starts with GitHub workflow triggers:
workflow_dispatch
workflow_run
I've identified two key scenarios where automatically triggering a separate workflow (pipeline) differs:
Passing information from the build to a child workflow (workflow_dispatch).
Triggering a child workflow without needing to pass information (workflow_run).
Using workflow_dispatch
This approach is useful when passing details from the build into the testing workflow (e.g., version number).
A workflow can be triggered via workflow_dispatch using a curl request: Create a workflow dispatch event.
To s…