Skip to content

Commit

Permalink
Create cron-scheduleSMSReminders.yml (#3373)
Browse files Browse the repository at this point in the history
Co-authored-by: Omar López <zomars@me.com>
  • Loading branch information
CarinaWolli and zomars committed Jul 14, 2022
1 parent 6a28396 commit bf2843c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cron-scheduleSMSReminders.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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:
# Runs “At minute 0, 15, 30, and 45.” (see https://crontab.guru)
- cron: "0,15,30,45 * * * *"
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: |
curl ${{ secrets.APP_URL }}/api/cron/scheduleSMSReminders \
-X POST \
-H 'content-type: application/json' \
-H 'authorization: ${{ secrets.CRON_API_KEY }}' \
--fail

0 comments on commit bf2843c

Please sign in to comment.