Skip to content

Cron: Check subscriptions #674

Cron: Check subscriptions

Cron: Check subscriptions #674

name: 'Cron: Check subscriptions'
on:
workflow_dispatch:
schedule:
# At 04:05 every day.
- cron: '5 4 * * *'
jobs:
cron-cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version-file: .dvmrc
- env:
POSTGRESQL_HOST: ${{ secrets.POSTGRESQL_HOST }}
POSTGRESQL_USER: ${{ secrets.POSTGRESQL_USER }}
POSTGRESQL_PASSWORD: ${{ secrets.POSTGRESQL_PASSWORD }}
POSTGRESQL_DBNAME: ${{ secrets.POSTGRESQL_DBNAME }}
POSTGRESQL_PORT: ${{ secrets.POSTGRESQL_PORT }}
POSTGRESQL_CAFILE: ${{ secrets.POSTGRESQL_CAFILE }}
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
run: |
make crons/check-subscriptions