From 2fa2e466f6cb53b58a5cb55117b78032b75efd68 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Mon, 2 Nov 2020 12:50:12 +0530 Subject: [PATCH] :construction_worker: Use upptime/uptime-monitor in Graphs CI --- .github/workflows/graphs.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/graphs.yml b/.github/workflows/graphs.yml index 0919c634..2fe156ae 100644 --- a/.github/workflows/graphs.yml +++ b/.github/workflows/graphs.yml @@ -22,20 +22,9 @@ jobs: with: ref: ${{ github.head_ref }} token: ${{ secrets.GH_PAT }} - - name: Setup Node.js - uses: actions/setup-node@v2.1.2 + - name: Generate graphs + uses: upptime/uptime-monitor@master with: - node-version: 14 - - name: Update graphs - run: npx @upptime/graphs + command: "graphs" env: GH_PAT: ${{ secrets.GH_PAT }} - - name: Compress graph PNGs - run: npx imagemin-cli graphs/* --out-dir=graphs - - name: Commit new data - uses: stefanzweifel/git-auto-commit-action@v4.7.2 - with: - commit_message: ":bento: Update graphs [skip ci]" - commit_user_name: Upptime Bot - commit_user_email: upptime@koj.co - commit_author: Upptime Bot