Add GitHub Actions workflow to ping healthcheck every 2 minutes
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
This commit is contained in:
parent
9bf4d921a6
commit
0be2700c01
1 changed files with 37 additions and 0 deletions
37
.github/workflows/ping.yml
vendored
Normal file
37
.github/workflows/ping.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
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
|
||||
Loading…
Reference in a new issue