Skip to content

Health Check

Health Check #14

Workflow file for this run

# .github/workflows/health-check.yml
name: Health Check
on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Curl health endpoint
run: |
code="$(curl -s -o /tmp/body -w '%{http_code}' "${{ secrets.HEALTH_URL }}")"
cat /tmp/body
echo
test "$code" = "200"