Skip to content

Inactivity Check

Inactivity Check #2673

name: Inactivity Check
on:
schedule:
# Run the job every 15 minutes
- cron: '*/15 * * * *'
jobs:
check-inactivity:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install curl
run: sudo apt-get install -y curl
- name: Make Request to API
run: |
curl -X GET https://matcha-find-your-date.vercel.app/api/check-inactivity
env:
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
POSTGRES_URL_NON_POOLING: ${{ secrets.POSTGRES_URL_NON_POOLING }}
POSTGRES_URL_NO_SSL: ${{ secrets.POSTGRES_URL_NO_SSL }}
POSTGRES_PRISMA_URL: ${{ secrets.POSTGRES_PRISMA_URL }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
POSTGRES_DATABASE: ${{ secrets.POSTGRES_DATABASE }}