Skip to content

Reconcile Google Calendar #423

Reconcile Google Calendar

Reconcile Google Calendar #423

name: Reconcile Google Calendar
on:
schedule:
- cron: "*/30 * * * *"
workflow_dispatch:
jobs:
reconcile-google-calendar:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Trigger protected reconciliation 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/reconcile-google-calendar"