Start one or more builds in parallel with specified Workflows from the parent Workflow. You can optionally add a Step to 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. - Make sure that you have Workflow(s) you would like to run in parallel (
workflow-1
andworkflow-2
in the example below).
- 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:
You can only start a build for the same app using this Workflow Recipe. If you would like to start a build for a different 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"