Merge pull request #2 from HideyoshiNakazone/deletes-staging-only-after-1800s
Deletes Staging Environment Only After 1800s
This commit is contained in:
4
.github/workflows/delete-staging.yml
vendored
4
.github/workflows/delete-staging.yml
vendored
@@ -10,11 +10,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/staging'
|
if: github.ref == 'refs/heads/staging'
|
||||||
env:
|
env:
|
||||||
TF_WORKSPACE: ${{github.ref == 'refs/heads/\"main\"' && 'prod' || 'staging'}}
|
TF_WORKSPACE: 'staging'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Sleep for 1800 minutes
|
- name: Sleep for 1800 minutes
|
||||||
run: sleep 60s
|
run: sleep 1800s
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# Checkout the repository to the GitHub Actions runner
|
# Checkout the repository to the GitHub Actions runner
|
||||||
|
|||||||
Reference in New Issue
Block a user