From d90a431dccb039dadb164f2d6e18d27442fad324 Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 12 Aug 2022 14:40:48 -0600 Subject: [PATCH] Adds actions to cleanup preview DBs --- .../workflows/cleanup-preview-databases.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cleanup-preview-databases.yml diff --git a/.github/workflows/cleanup-preview-databases.yml b/.github/workflows/cleanup-preview-databases.yml new file mode 100644 index 0000000000..a8be8db1d3 --- /dev/null +++ b/.github/workflows/cleanup-preview-databases.yml @@ -0,0 +1,20 @@ +name: Cleanup Preview Databases + +env: + SNAPLET_ACCESS_TOKEN: ${{ secrets.SNAPLET_ACCESS_TOKEN }} + SNAPLET_PROJECT_ID: cl4u26bwz7962859ply7ibuo43t + +on: + pull_request: + types: [closed] + branches: + - main + +jobs: + delete: + runs-on: ubuntu-latest + steps: + - uses: snaplet/action@v1 + if: ${{ env.SNAPLET_ACCESS_TOKEN && env.SNAPLET_PROJECT_ID }} + with: + delete: true