mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -320,9 +320,8 @@ jobs:
|
||||
curl -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -L -o "${ARTIFACT_NAME}.zip" "$DOWNLOAD_URL"
|
||||
|
||||
set -x
|
||||
unzip "${ARTIFACT_NAME}.zip"
|
||||
unzip "${ARTIFACT_NAME}.zip" -d "./main"
|
||||
rm "${ARTIFACT_NAME}.zip"
|
||||
mv "${{ matrix.test_name }}.json" "${{ matrix.test_name }}-main.json"
|
||||
fi
|
||||
- name: Update PR with results
|
||||
uses: actions/github-script@v7
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
function getDiffPercents(main, current) {
|
||||
let diff = -1 * (100 - current / (main / 100));
|
||||
@@ -40,7 +41,7 @@ exports.script = async function (github, context, test_name) {
|
||||
|
||||
// 2. Read the main results
|
||||
const results_main = JSON.parse(
|
||||
fs.readFileSync(test_name + "-main.json")
|
||||
fs.readFileSync(path.join("main", test_name + ".json"))
|
||||
).end;
|
||||
|
||||
let output = "";
|
||||
|
||||
Reference in New Issue
Block a user