Skip to content

GitHub Action: assert healthy after deploy

Available since v1.0.0 (May 2026).

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.

- name: Verify deploy health
uses: uptimemonitoring/assert-healthy@v1
with:
api-key: ${{ secrets.UPTIMEMONITORING_API_KEY }}
monitor-id: ${{ vars.MONITOR_ID }}
timeout: 120
InputRequiredDefaultDescription
api-keyYesUptimeMonitoring API key
monitor-idYesMonitor ID to check
timeoutNo120Max seconds to wait for healthy
base-urlNohttps://api.uptimemonitoring.comAPI base URL
OutputDescription
healthytrue or false
last-statusLast observed monitor status
last-regionRegion of last check
last-ttfb-msTTFB of last check
- name: Verify deploy health
uses: uptimemonitoring/assert-healthy@v1
with:
api-key: ${{ secrets.UPTIMEMONITORING_API_KEY }}
monitor-id: ${{ vars.MONITOR_ID }}
timeout: 180

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 }}