Skip to content

Commit

Permalink
temp debug vars
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 19, 2023
1 parent 2ee44bb commit 2661805
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,19 @@ jobs:
steps:
- name: Export TF_VAR variables
env:
VARS_JSON: ${{ toJSON(vars) }}
run: echo "${VARS_JSON}"
vars_json: ${{ toJSON(vars) }}
run: |
tf_vars=$(echo $vars_json
| jq -r '
. | with_entries( .key |= ascii_downcase | select(.key | startswith("tf_var")))
| to_entries
| map("TF_VAR_\(.key| split("tf_var_")[-1])=\(.value)") |.[]'
)
for var in $tf_vars; do
echo "$var"
echo "$var" >> $GITHUB_ENV
done
# build_test_push:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 2661805

Please sign in to comment.