forked from DongGeon0908/health-check
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.23 KB
/
health-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ===================================================================
# Health Check
# ===================================================================
name: Health Check Bot
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
# github scheduler not supported seconds cron feature
on:
schedule:
# Just Run Every minute, but this action may be delayed https://crontab.guru
- cron: '*/1 * * * *'
push:
branches: 'main'
# Job Tasks
jobs:
health-check:
runs-on: ubuntu-latest
steps:
# Echo
- name: echo job
run: echo "Health Check"
# Start Job
- name: start Job
run: date
# ===================================================================
# Health Check Start
# ===================================================================
- name: oksusu health check
run: |
curl -X 'GET' \
'https://api.oksusu.site/health' \
-H 'accept: application/json'
# ===================================================================
# Health Check End
# ===================================================================
# End Job
- name: end Job
run: date