From a9edf4734c517825a15a02da1b7830eee4ef8f56 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Wed, 21 Dec 2022 17:31:31 -0500 Subject: [PATCH] fix(pipeline): handle the pipeline being manually triggered This is the case when the `Run` button is pressed in the UI. --- terraform/pipeline/workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/pipeline/workspace.py b/terraform/pipeline/workspace.py index 4915d03f..526296e8 100644 --- a/terraform/pipeline/workspace.py +++ b/terraform/pipeline/workspace.py @@ -12,7 +12,7 @@ if REASON == "PullRequest" and TARGET in ENV_BRANCHES: # it's a pull request against one of the environment branches, so use the target branch environment = TARGET -elif REASON == "IndividualCI" and SOURCE in ENV_BRANCHES: +elif REASON in ["IndividualCI", "Manual"] and SOURCE in ENV_BRANCHES: # it's being run on one of the environment branches, so use that environment = SOURCE else: