Push Notification Cron #27
This file contains hidden or 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: Push Notification Cron | |
| on: | |
| schedule: | |
| # Runs every 15 minutes | |
| - cron: '*/15 * * * *' | |
| workflow_dispatch: # Allows manual trigger from the GitHub Actions tab | |
| jobs: | |
| ping_cron: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Ping API | |
| run: | | |
| curl -X GET "https://eventide-calender.vercel.app/api/cron/notifications" \ | |
| -H "Authorization: Bearer ${{ secrets.CRON_SECRET }}" |