diff --git a/.github/workflows/destroy-development.yml b/.github/workflows/destroy-development.yml index f993ba1f..61ee0de1 100644 --- a/.github/workflows/destroy-development.yml +++ b/.github/workflows/destroy-development.yml @@ -1,10 +1,12 @@ name: Destroy Development on: - workflow_dispatch: + workflow_dispatch: + schedule: + - cron: "0 23 * * *" permissions: - id-token: write # This is required for requesting the JWT + id-token: write # This is required for Az CLI Login contents: read # This is required for actions/checkout jobs: @@ -18,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: frasermolyneux/actions/terraform-destroy@main + - uses: frasermolyneux/actions/terraform-destroy-resources@main with: terraform-folder: "terraform" terraform-var-file: "tfvars/dev.tfvars" @@ -26,3 +28,4 @@ jobs: AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + resources: "['azurerm_linux_web_app.app']"