Skip to content

Commit a7cbb20

Browse files
Fix outputs
1 parent 3886e4b commit a7cbb20

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/terragrunt-deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
exit $raised
4747
4848
- name: "Set default Terraform Tags"
49+
id: set-tags
4950
run: |
5051
echo "${{ github.repository }}" | cut -d "/" -f 2 > repo.txt
5152
echo "TF_VAR_organization_tag=${{ github.repository_owner }}" >> "$GITHUB_OUTPUT"
@@ -66,9 +67,9 @@ jobs:
6667
AWS_REGION: ${{ inputs.region }}
6768
INPUT_PRE_EXEC_0: |
6869
sudo apt update -yqq && sudo apt install python3 -yqq
69-
TF_VAR_organization_tag: ${{ vars.TF_VAR_organization_tag }}
70-
TF_VAR_repository_tag: ${{ vars.TF_VAR_repository_tag }}
71-
TF_VAR_commit_hash_tag: ${{ vars.TF_VAR_commit_hash_tag }}
70+
TF_VAR_organization_tag: ${{ steps.set-tags.outputs.TF_VAR_organization_tag }}
71+
TF_VAR_repository_tag: ${{ steps.set-tags.outputs.TF_VAR_repository_tag }}
72+
TF_VAR_commit_hash_tag: ${{ steps.set-tags.outputs.TF_VAR_commit_hash_tag }}
7273
with:
7374
tf_version: ${{ inputs.tf_version }}
7475
tg_version: ${{ inputs.tg_version }}
@@ -82,9 +83,9 @@ jobs:
8283
TERRAFORM_PLAN: ${{ steps.plan.outputs.TERRAFORM_PLAN }}
8384
INPUT_PRE_EXEC_0: |
8485
sudo apt update -yqq && sudo apt install python3 -yqq
85-
TF_VAR_organization_tag: ${{ vars.TF_VAR_organization_tag }}
86-
TF_VAR_repository_tag: ${{ vars.TF_VAR_repository_tag }}
87-
TF_VAR_commit_hash_tag: ${{ vars.TF_VAR_commit_hash_tag }}
86+
TF_VAR_organization_tag: ${{ steps.set-tags.outputs.TF_VAR_organization_tag }}
87+
TF_VAR_repository_tag: ${{ steps.set-tags.outputs.TF_VAR_repository_tag }}
88+
TF_VAR_commit_hash_tag: ${{ steps.set-tags.outputs.TF_VAR_commit_hash_tag }}
8889
with:
8990
tf_version: ${{ inputs.tf_version }}
9091
tg_version: ${{ inputs.tg_version }}

0 commit comments

Comments
 (0)