Compare commits

..

4 commits

Author SHA1 Message Date
Ronaldo Freitas Dias
4b9d81fc6c Add GitHub Actions workflow to ping Vercel every 2 minutes 2026-06-11 11:29:21 -03:00
Claude
5cf777d0bf
Route ping through Vercel endpoint instead of calling hc-ping.com directly
GitHub Actions now calls /api/ping on Vercel, which forwards to hc-ping.com.
This also monitors Vercel availability.

https://claude.ai/code/session_01U8j5zqsX4kwqjnzq3EncSi
2026-06-11 13:34:31 +00:00
Claude
0be2700c01
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
2026-06-11 13:26:13 +00:00
Ronaldo Freitas Dias
9bf4d921a6
Add Vercel project with health check ping
- Serverless function Python em /api/ping
- Frontend com botão para disparar o ping
- URL: https://hc-ping.com/a4b80e88-d7ab-4edc-ad3e-9cd57036075e
2026-06-11 10:23:00 -03:00
3 changed files with 39 additions and 1 deletions

37
.github/workflows/ping.yml vendored Normal file
View 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://hello-world-3o95ks7si-our-claude-s-projects.vercel.app/api/ping
- name: Wait 2 min
run: sleep 120
- name: Ping 2
run: curl -fsS --retry 3 https://hello-world-3o95ks7si-our-claude-s-projects.vercel.app/api/ping
- name: Wait 2 min
run: sleep 120
- name: Ping 3
run: curl -fsS --retry 3 https://hello-world-3o95ks7si-our-claude-s-projects.vercel.app/api/ping
- name: Wait 2 min
run: sleep 120
- name: Ping 4
run: curl -fsS --retry 3 https://hello-world-3o95ks7si-our-claude-s-projects.vercel.app/api/ping
- name: Wait 2 min
run: sleep 120
- name: Ping 5
run: curl -fsS --retry 3 https://hello-world-3o95ks7si-our-claude-s-projects.vercel.app/api/ping

View file

@ -2,7 +2,7 @@ import socket
import urllib.request
from http.server import BaseHTTPRequestHandler
PING_URL = "https://hc-ping.com/4f9a5abf-38d6-4f34-a698-9e97c3a62632"
PING_URL = "https://hc-ping.com/a4b80e88-d7ab-4edc-ad3e-9cd57036075e"
def do_ping():

View file

@ -38,3 +38,4 @@
</script>
</body>
</html>