diff --git a/.github/workflows/ephemeral-cloud-infra.yml b/.github/workflows/ephemeral-cloud-infra.yml index 71f23eb4..346b8e02 100644 --- a/.github/workflows/ephemeral-cloud-infra.yml +++ b/.github/workflows/ephemeral-cloud-infra.yml @@ -108,9 +108,9 @@ jobs: if: ${{ inputs.destroy }} working-directory: test-automation-ephemeral/infra run: | - spacectl stack enable --id $EPHEMERAL_STACK_ID + spacectl stack enable --id ${{ inputs.stack_id }} spacectl stack task --id ${{ inputs.stack_id }} --tail "terraform destroy -refresh=false -parallelism=10 -auto-approve" - spacectl stack disable --id $EPHEMERAL_STACK_ID + spacectl stack disable --id ${{ inputs.stack_id }} - name: Download Terraform state if: ${{ inputs.destroy }} @@ -123,5 +123,5 @@ jobs: if: ${{ inputs.destroy }} working-directory: test-automation-ephemeral/stack run: | - spacectl stack enable --id $EPHEMERAL_STACK_ID + spacectl stack enable --id ${{ inputs.stack_id }} terraform destroy -auto-approve