Skip to content

Commit

Permalink
fix(pipeline): handle the pipeline being manually triggered
Browse files Browse the repository at this point in the history
This is the case when the `Run` button is pressed in the UI.
  • Loading branch information
afeld committed Dec 21, 2022
1 parent adb52b5 commit a9edf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/pipeline/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9edf47

Please sign in to comment.