Skip to content

Commit

Permalink
Add data modules to prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelFoleyFZ committed Sep 28, 2024
1 parent 4e60b1f commit 65e464f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,16 @@ fi
BASE_PIPELINE="steps:"
PIPELINE="${BASE_PIPELINE}"

prompt=()
prompt+=("Select the modules to deploy")
if [[ -n "${data_modules[@]}" ]]; then
prompt+=(":chart_with_upwards_trend: Data modules - $(printf '%s ' "${data_modules[@]}")")
fi

PIPELINE+="
- block: \":terragrunt: [${BUILDKITE_LABEL}] Select Modules\"
prompt: Select the modules to deploy
prompt: |-
$(printf '%s/n' ${prompt})
fields:
- select: \"Modules\"
key: \"modules\"
Expand Down

0 comments on commit 65e464f

Please sign in to comment.