Skip to content

Commit

Permalink
add missing vars and env processing
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Sep 1, 2024
1 parent 131e1ba commit 6be768e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,17 @@ jobs:
shell: bash
run: >-
AWS_CFN_PARAMS=$(
cat cfn-parameters.json |
jq -r '
to_entries |
map("\(.key)=\(.value|tostring)") |
join(" ")
'
jq \
-n \
--argjson secrets "$GHA_SECRETS" \
--argjson env "$GHA_ENV" \
-f cfn-parameters.json |
jq \
-r '
to_entries |
map("\(.key)=\(.value|tostring)") |
join(" ")
'
) &&
echo "AWS_CFN_PARAMS=--parameter-overrides ${AWS_CFN_PARAMS}" >> $GITHUB_ENV
Expand Down

0 comments on commit 6be768e

Please sign in to comment.