Runs every 10 minutes, pings 5x with 2-minute sleeps between each. GitHub Actions minimum cron interval is 5 min, this workaround achieves ~2-minute cadence within a single job. https://claude.ai/code/session_01U8j5zqsX4kwqjnzq3EncSi
37 lines
897 B
YAML
37 lines
897 B
YAML
name: Health Check Ping
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "*/10 * * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
ping:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Ping 1
|
|
run: curl -fsS --retry 3 https://hc-ping.com/a4b80e88-d7ab-4edc-ad3e-9cd57036075e
|
|
|
|
- name: Wait 2 min
|
|
run: sleep 120
|
|
|
|
- name: Ping 2
|
|
run: curl -fsS --retry 3 https://hc-ping.com/a4b80e88-d7ab-4edc-ad3e-9cd57036075e
|
|
|
|
- name: Wait 2 min
|
|
run: sleep 120
|
|
|
|
- name: Ping 3
|
|
run: curl -fsS --retry 3 https://hc-ping.com/a4b80e88-d7ab-4edc-ad3e-9cd57036075e
|
|
|
|
- name: Wait 2 min
|
|
run: sleep 120
|
|
|
|
- name: Ping 4
|
|
run: curl -fsS --retry 3 https://hc-ping.com/a4b80e88-d7ab-4edc-ad3e-9cd57036075e
|
|
|
|
- name: Wait 2 min
|
|
run: sleep 120
|
|
|
|
- name: Ping 5
|
|
run: curl -fsS --retry 3 https://hc-ping.com/a4b80e88-d7ab-4edc-ad3e-9cd57036075e
|