Try Reporter JSON
This commit is contained in:
parent
d0a38e3ca9
commit
a1c791a9fe
2 changed files with 24 additions and 1 deletions
19
.github/workflows/reportBrokenPlugins.yml
vendored
19
.github/workflows/reportBrokenPlugins.yml
vendored
|
|
@ -18,6 +18,12 @@ on:
|
|||
# # Every day at midnight
|
||||
- cron: 0 0 * * *
|
||||
|
||||
env:
|
||||
FORCE_COLOR: true
|
||||
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
|
||||
REPO: Equicord/Equibored
|
||||
USERNAME: GitHub-Actions
|
||||
|
||||
jobs:
|
||||
TestPlugins:
|
||||
name: Test Patches
|
||||
|
|
@ -93,3 +99,16 @@ jobs:
|
|||
env:
|
||||
WEBHOOK_URL: ${{ inputs.webhook_url || secrets.WEBHOOK_URL }}
|
||||
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
|
||||
|
||||
- name: Upload Report JSON to Equibored repo
|
||||
run: |
|
||||
git config --global user.name "GitHub-Actions"
|
||||
git config --global user.email actions@github.com
|
||||
git clone https://$USERNAME:$GITHUB_TOKEN@github.com/$REPO.git report
|
||||
cd report
|
||||
|
||||
cp ../dist/report.json .
|
||||
git add -A
|
||||
|
||||
git commit -m "Reporter Results"
|
||||
git push --force https://$USERNAME:$GITHUB_TOKEN@github.com/$REPO.git
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@
|
|||
/// <reference types="../src/modules" />
|
||||
|
||||
import { createHmac } from "crypto";
|
||||
import { readFileSync } from "fs";
|
||||
import { readFileSync, writeFileSync } from "fs";
|
||||
import { join } from "path";
|
||||
import pup, { JSHandle } from "puppeteer-core";
|
||||
|
||||
const logStderr = (...data: any[]) => console.error(`${CANARY ? "CANARY" : "STABLE"} ---`, ...data);
|
||||
|
|
@ -91,6 +92,9 @@ function toCodeBlock(s: string, indentation = 0, isDiscord = false) {
|
|||
}
|
||||
|
||||
async function printReport() {
|
||||
const filePath = join("dist", "report.json");
|
||||
writeFileSync(filePath, JSON.stringify(report, null, 2));
|
||||
|
||||
console.log();
|
||||
|
||||
console.log("# Equicord Report" + (CANARY ? " (Canary)" : ""));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue