From caa562e7547c53eb7167cc8b607886b9481dd5aa Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Sat, 23 Sep 2023 02:09:12 -0300 Subject: [PATCH] Deletes Staging Environment Only After 1800s --- .github/workflows/delete-staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/delete-staging.yml b/.github/workflows/delete-staging.yml index 8ccefcd..12b9860 100644 --- a/.github/workflows/delete-staging.yml +++ b/.github/workflows/delete-staging.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest if: github.ref == 'refs/heads/staging' env: - TF_WORKSPACE: ${{github.ref == 'refs/heads/\"main\"' && 'prod' || 'staging'}} + TF_WORKSPACE: 'staging' steps: - name: Sleep for 1800 minutes - run: sleep 60s + run: sleep 1800s shell: bash # Checkout the repository to the GitHub Actions runner