mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
try again
This commit is contained in:
parent
2fe9e67ea9
commit
d44fdcd01c
1 changed files with 5 additions and 2 deletions
7
.github/workflows/_deploy_lambda.yml
vendored
7
.github/workflows/_deploy_lambda.yml
vendored
|
|
@ -85,8 +85,11 @@ jobs:
|
|||
run: |
|
||||
ENV_VARS=""
|
||||
if [ -n "${{ inputs.environment_vars }}" ]; then
|
||||
# Convert multiline "KEY=VALUE" into HCL map format
|
||||
ENV_VARS="{ $(echo "${{ inputs.environment_vars }}" | awk -F= '{gsub(/"/,"\\\""); printf "%s=\"%s\",",$1,$2}' | sed 's/,$//') }"
|
||||
# Convert multiline KEY=VALUE into JSON
|
||||
ENV_VARS=$(echo "${{ inputs.environment_vars }}" | \
|
||||
jq -Rn '
|
||||
[inputs | split("=")] |
|
||||
{ (.[0]): .[1] }' | jq -s add | jq -c .)
|
||||
fi
|
||||
|
||||
PLAN_CMD="terraform plan \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue