Skip to content

Delete unused rooms

Delete unused rooms #2

Workflow file for this run

name: Delete unused rooms
env:
DIFF: 2678400 # 31 day
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
concurrency:
group: "clean-db"
jobs:
clean-db:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Save service-account-key.json file
env:
FIREBASE_SERVICE_ACCOUNT_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
run: echo "$FIREBASE_SERVICE_ACCOUNT_KEY" >> service-account-key.json
- name: Build the app
run: docker build -t watch-together-cleaner --target clean-db .
- name: Run the container
run: docker run -e DIFF=$DIFF watch-together-cleaner