Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #272

Closed
wants to merge 3 commits into from
Closed

Test #272

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/handler-pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ jobs:
# this step will delete workspace-resources if exists for this PR
- name: Terraform Destroy
id: destroy-paa
if: steps.get-workspaces-google-private-active-active.outputs.WORSPACE_PRI_AA_EXISTS != null
if: ${{ steps.get-workspaces-google-private-active-active.outputs.WORSPACE_PRI_AA_EXISTS }}
working-directory: ${{ env.WORK_DIR_PATH }}
run: terraform destroy -auto-approve -input=false -no-color

# this step will delete workspace for this PR
- name: Terraform Delete Workspace
id: destroy-workspace-paa
if: steps.get-workspaces-google-private-active-active.outputs.WORSPACE_PRI_AA_EXISTS != null && steps.destroy.outcome == 'success'
if: ${{ steps.get-workspaces-google-private-active-active.outputs.WORSPACE_PRI_AA_EXISTS && steps.destroy.outcome == 'success' }}
working-directory: ${{ env.WORK_DIR_PATH }}
env:
TFE_ORGANIZATION: ${{ secrets.TFE_ORGANIZATION }}
Expand All @@ -159,14 +159,14 @@ jobs:
# this step will delete workspace-resources if exists for this PR
- name: Terraform Destroy
id: destroy-pub-aa
if: ${{ steps.get-workspaces-google-public-active-active.outputs.WORSPACE_PUB_AA_EXISTS != null }}
if: ${{ steps.get-workspaces-google-public-active-active.outputs.WORSPACE_PUB_AA_EXISTS }}
working-directory: ${{ env.WORK_DIR_PATH }}
run: terraform destroy -auto-approve -input=false -no-color

# this step will delete workspace for this PR
- name: Terraform Delete Workspace
id: destroy-workspace-pub-aa
if: ${{ steps.get-workspaces-google-public-active-active.outputs.WORSPACE_PUB_AA_EXISTS != null && steps.destroy.outcome == 'success' }}
if: ${{ steps.get-workspaces-google-public-active-active.outputs.WORSPACE_PUB_AA_EXISTS && steps.destroy.outcome == 'success' }}
working-directory: ${{ env.WORK_DIR_PATH }}
env:
TFE_ORGANIZATION: ${{ secrets.TFE_ORGANIZATION }}
Expand Down
Loading
Loading