Compare commits
4 commits
b32ef2082c
...
4b9d81fc6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b9d81fc6c | ||
|
|
5cf777d0bf | ||
|
|
0be2700c01 | ||
|
|
9bf4d921a6 |
3 changed files with 39 additions and 1 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://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
|
||||
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -38,3 +38,4 @@
|
|||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue