Cron - scheduleEmailReminders #93516
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
# deprecated - use smtp with tasker instead */ | |
name: Cron - scheduleEmailReminders | |
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 every 15th minute." (see https://crontab.guru) | |
- cron: "*/15 * * * *" | |
jobs: | |
cron-scheduleEmailReminders: | |
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/workflows/scheduleEmailReminders \ | |
-X POST \ | |
-H 'content-type: application/json' \ | |
-H 'authorization: ${{ secrets.CRON_API_KEY }}' \ | |
-sSf |