mirror of
https://github.com/wahyd4/upptime.git
synced 2026-08-09 05:06:31 +10:00
36 lines
944 B
YAML
36 lines
944 B
YAML
name: Setup CI
|
|
on:
|
|
push:
|
|
paths:
|
|
- ".upptimerc.yml"
|
|
repository_dispatch:
|
|
types: [setup]
|
|
workflow_dispatch:
|
|
jobs:
|
|
release:
|
|
name: Setup Upptime
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Update response time
|
|
uses: upptime/uptime-monitor@master
|
|
with:
|
|
command: "response-time"
|
|
env:
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
SECRET_SITE: ${{ secrets.SECRET_SITE }}
|
|
SLACK_APP_ACCESS_TOKEN: ${{ secrets.SLACK_APP_ACCESS_TOKEN }}
|
|
- name: Update response time
|
|
uses: upptime/uptime-monitor@master
|
|
with:
|
|
command: "readme"
|
|
env:
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
SECRET_SITE: ${{ secrets.SECRET_SITE }}
|
|
- name: Generate graphs
|
|
uses: benc-uk/workflow-dispatch@v1
|
|
with:
|
|
workflow: Graphs CI
|
|
token: ${{ secrets.GH_PAT }}
|