Skip to content

Commit 29804b3

Browse files
NRL-760 Fix github workflow
1 parent 8690f5b commit 29804b3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/persistent-environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ jobs:
134134
135135
- name: Terraform Plan
136136
run: |
137+
inactive_stack=$(poetry run python ./scripts/get_env_config.py inactive-stack ${{ inputs.environment }})
137138
terraform -chdir=terraform/infrastructure plan \
138139
--var-file=etc/${{ vars.ACCOUNT_NAME }}.tfvars \
139140
--var assume_role_arn=${{ secrets.DEPLOY_ROLE_ARN }} \
140-
--var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${TF_WORKSPACE_NAME}) \
141+
--var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${inactive_stack}) \
141142
-out tfplan
142143
143144
- name: Save Terraform Plan

.github/workflows/pr-env-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
terraform -chdir=terraform/infrastructure plan \
166166
--var-file=etc/dev.tfvars \
167167
--var assume_role_arn=${{ secrets.DEPLOY_ROLE_ARN }} \
168-
--var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${TF_WORKSPACE_NAME}) \
168+
--var use_shared_resources=$(poetry run python scripts/are_resources_shared_for_stack.py ${{ needs.set-environment-id.outputs.environment_id }}) \
169169
-out tfplan
170170
171171
- name: Terraform Apply

0 commit comments

Comments
 (0)