Start one or more builds with specified Workflows from the parent Workflow and optionally wait for their completion.
- Make sure you have a valid Bitrise API key in your Secrets (
$BITRISE_API_KEY
). See Personal access tokens for more details. - Have Workflow(s) you would like to run in parallel (
workflow-1
andworkflow-2
in the example).
- Add a Bitrise Start Build Step. Set the input variables:
- workflows: The Workflow(s) to start. One Workflow per line.
- Bitrise Access Token:
$BITRISE_API_KEY
.
- (Optional) Add any Step you would like to run in parallel in the parent Workflow while the triggered Workflows are running.
- (Optional) Add a Bitrise Wait for Build Step. Set the input variables:
- Bitrise Access Token:
$BITRISE_API_KEY
- Bitrise Access Token:
With the Steps above you can only start a build for the same app. If you would like to start a build for an other app, you can use the Trigger Bitrise workflow Step.
parent-workflow:
steps:
- build-router-start@0:
inputs:
- workflows: |-
workflow-1
workflow-2
- access_token: $BITRISE_API_KEY
- script@1:
inputs:
- content: echo "Doing something else..."
- build-router-wait@0:
inputs:
- access_token: $BITRISE_API_KEY