mirror of
https://github.com/wahyd4/upptime.git
synced 2026-08-28 22:46:00 +10:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
# Do not edit this file directly!
|
|
# ===============================
|
|
#
|
|
# Your changes will be overwritten when the template updates (weekly)
|
|
# Instead, propose changes to the template: https://github.com/upptime/upptime
|
|
# Or, change your configuration in .upptimerc.yml
|
|
|
|
name: Graphs CI
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
repository_dispatch:
|
|
types: [graphs]
|
|
workflow_dispatch:
|
|
jobs:
|
|
release:
|
|
name: Generate graphs
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
token: ${{ secrets.GH_PAT }}
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14
|
|
- name: Update graphs
|
|
run: npx @upptime/graphs
|
|
env:
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
SECRET_SITE: ${{ secrets.SECRET_SITE }}
|
|
- name: Commit new data
|
|
uses: stefanzweifel/git-auto-commit-action@v4.1.1
|
|
with:
|
|
commit_message: ":bento: Update graphs [skip ci]"
|
|
commit_user_name: Koj Bot
|
|
commit_user_email: bot@koj.co
|
|
commit_author: Koj Bot <bot@koj.co>
|