GitHub Action: assert healthy after deploy
Available since v1.0.0 (May 2026).
What it does
Section titled “What it does”The uptimemonitoring/assert-healthy action polls a monitor and fails the workflow step if the monitor doesn’t report healthy within a timeout window. Built for post-deploy health gates.
Minimal workflow
Section titled “Minimal workflow”- name: Verify deploy health uses: uptimemonitoring/assert-healthy@v1 with: api-key: ${{ secrets.UPTIMEMONITORING_API_KEY }} monitor-id: ${{ vars.MONITOR_ID }} timeout: 120Inputs
Section titled “Inputs”| Input | Required | Default | Description |
|---|---|---|---|
api-key | Yes | — | UptimeMonitoring API key |
monitor-id | Yes | — | Monitor ID to check |
timeout | No | 120 | Max seconds to wait for healthy |
base-url | No | https://api.uptimemonitoring.com | API base URL |
Outputs
Section titled “Outputs”| Output | Description |
|---|---|
healthy | true or false |
last-status | Last observed monitor status |
last-region | Region of last check |
last-ttfb-ms | TTFB of last check |
Advanced usage
Section titled “Advanced usage”Custom timeout
Section titled “Custom timeout”- name: Verify deploy health uses: uptimemonitoring/assert-healthy@v1 with: api-key: ${{ secrets.UPTIMEMONITORING_API_KEY }} monitor-id: ${{ vars.MONITOR_ID }} timeout: 180Using in a matrix
Section titled “Using in a matrix”The block below is a jobs.<job>.steps: fragment — drop it into a full workflow with name, on, and runs-on already declared:
jobs: assert-healthy: runs-on: ubuntu-latest strategy: matrix: monitor: [1287, 1288, 1289] steps: - uses: uptimemonitoring/assert-healthy@v1 with: api-key: ${{ secrets.UPTIMEMONITORING_API_KEY }} monitor-id: ${{ matrix.monitor }}