2022-07-14 21:22:40 +00:00
|
|
|
name: Cron - scheduleSMSReminders
|
|
|
|
|
|
|
|
on:
|
|
|
|
# "Scheduled workflows run on the latest commit on the default or base branch."
|
|
|
|
# — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule
|
|
|
|
schedule:
|
2023-08-23 12:13:22 +00:00
|
|
|
# Runs "At every 15th minute." (see https://crontab.guru)
|
|
|
|
- cron: "*/15 * * * *"
|
2022-07-14 21:22:40 +00:00
|
|
|
jobs:
|
|
|
|
cron-scheduleSMSReminders:
|
|
|
|
env:
|
|
|
|
APP_URL: ${{ secrets.APP_URL }}
|
|
|
|
CRON_API_KEY: ${{ secrets.CRON_API_KEY }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: cURL request
|
|
|
|
if: ${{ env.APP_URL && env.CRON_API_KEY }}
|
|
|
|
run: |
|
2022-07-25 21:04:08 +00:00
|
|
|
curl ${{ secrets.APP_URL }}/api/cron/workflows/scheduleSMSReminders \
|
2022-07-14 21:22:40 +00:00
|
|
|
-X POST \
|
|
|
|
-H 'content-type: application/json' \
|
|
|
|
-H 'authorization: ${{ secrets.CRON_API_KEY }}' \
|
2023-08-23 12:13:22 +00:00
|
|
|
-sSf
|