Inactivity Check #2673
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |