Skip to content

How can I trigger a separate workflow in another repo, without it affecting the main build pipeline? #139806

Closed Answered by Leramir1
Leramir1 asked this question in Programming Help
Discussion options

You must be logged in to vote

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:

  1. Passing information from the build to a child workflow (workflow_dispatch).

  2. 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.

    • Keep in mind there's a limit of 10 inputs that can be passed.
  • To s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Leramir1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants