Send alerts cron job #19
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: Send alerts cron job | |
on: | |
schedule: | |
- cron: 0 7 * * * | |
workflow_dispatch: | |
jobs: | |
cron: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send alerts cron job | |
run: | | |
curl --request POST \ | |
--url '${{ vars.NEXT_PUBLIC_FALLBACK_SITE_URL }}/api/send-alerts' \ | |
--header 'Authorization: Bearer ${{ secrets.CRON_API_KEY }}' |