generated from upptime/upptime
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.09 KB
/
uptime10.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
#
# =====================================================
# Same as uptime.yml but with a different cron schedule
# =====================================================
#
# 🔼 Upptime @master
# Github Actions cannot run any more frequent that once every 5 minutes, although
# we'd like to check our endpoints more frequently.
# I added 5 additional uptime.yml files, each offset by one minute on the cron job.
# This allows us to get closer to 1 minute checks.
name: Uptime CI every 10 mins
on:
schedule:
- cron: "*/10 * * * *"
repository_dispatch:
types: [uptime]
workflow_dispatch:
concurrency:
group: uptime
jobs:
release:
name: Check status
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT || github.token }}
- name: Check endpoint status
uses: upptime/uptime-monitor@master
with:
command: "update"
env:
GH_PAT: ${{ secrets.GH_PAT || github.token }}
SECRETS_CONTEXT: ${{ toJson(secrets) }}