Use the following instructions to set up dependencies between actions in a workflow.
When configuring dependencies, follow these guidelines:
-
If an action is inside a group, that action can only depend on other actions within the same group.
-
Actions and action groups can depend on other actions and action groups at the same level in the YAML hierarchy, but not at a different level.
To set up dependencies using the visual editor
Open the CodeCatalyst console at https://codecatalyst.aws/
. -
Choose your project.
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source repository or branch name where the workflow is defined, or filter by workflow name or status.
-
Choose Edit.
-
Choose Visual.
-
In the workflow diagram, choose the action that will depend on another action.
-
Choose the Inputs tab.
-
In Depends on - optional, do the following:
Specify an action, action group, or gate that must run successfully in order for this action to run.
For more information about the 'depends on' functionality, see Sequencing actions.
-
(Optional) Choose Validate to validate the workflow's YAML code before committing.
-
Choose Commit, enter a commit message, and choose Commit again.