Skip to content

Send Follow-Ups

Send Follow-Ups #485

name: Send Follow-Ups
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
jobs:
send-followups:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Trigger protected follow-up route
env:
APP_BASE_URL: ${{ secrets.APP_BASE_URL }}
CRON_SECRET: ${{ secrets.CRON_SECRET }}
run: |
test -n "$APP_BASE_URL"
test -n "$CRON_SECRET"
curl --fail-with-body --silent --show-error \
-X POST \
-H "authorization: Bearer $CRON_SECRET" \
"$APP_BASE_URL/api/cron/send-followups"