From bd63537ba0a0b50332573b0400f8f43abd69bad8 Mon Sep 17 00:00:00 2001 From: John Brunton Date: Sat, 17 Aug 2024 11:46:22 +0100 Subject: [PATCH] chore: update stack ttls --- .github/workflows/cleanup-stacks.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cleanup-stacks.yml b/.github/workflows/cleanup-stacks.yml index efb0e899..b9f30dc3 100644 --- a/.github/workflows/cleanup-stacks.yml +++ b/.github/workflows/cleanup-stacks.yml @@ -2,7 +2,7 @@ name: cleanup-stacks on: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" workflow_dispatch: jobs: @@ -19,9 +19,19 @@ jobs: policies: dev: match: - name: '!production' + name: '!(staging|production)' ttl: hours: 6 + staging: + match: + name: staging + ttl: + hours: 24 + production: + match: + name: production + ttl: + hours: 24 env: PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}