Skip to content

Scheduling infrastructure for absolutely everyone.

Adds actions to cleanup preview DBs

zomarsd90a431dccb0
diff --git a/.github/workflows/cleanup-preview-databases.yml b/.github/workflows/cleanup-preview-databases.yml
new file mode 100644
index 00000000000..a8be8db1d35
--- /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