Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam committed Jan 11, 2025
1 parent 692a320 commit 1c298bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/clean-db.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 🧹 Clean Database

on:
schedule:
- cron: '0 0 1 * *'
push:
branches:
- dev

jobs:
refresh:
Expand All @@ -14,5 +15,10 @@ jobs:
curl -X POST \
-H 'Authorization: Bearer ${{ secrets.STAGING_TURSO_DB_AUTH_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{ "requests": [ { "type": "execute", "stmt": { "sql": "DELETE * from session WHERE expiration_at < unixepoch()" } }, { "type": "close" } ] }' \
https://${{ secrets.TURSO_DATABASE_NAME }}-${{ secrets.TURSO_ORG_NAME}}.turso.io/v2/pipeline
-d '{
"requests": [
{ "type": "execute", "stmt": { "sql": "DELETE FROM session WHERE expiration_at < unixepoch()*1000" } },
{ "type": "close" }
]
}' \
https://${{ secrets.TURSO_DATABASE_NAME }}-${{ secrets.TURSO_ORG_NAME }}.turso.io/v2/pipeline
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: 🚀 Deploy
on:
push:
branches:
- main
- dev
# - main
# - dev

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down

0 comments on commit 1c298bb

Please sign in to comment.