From 5681bf6507ef4c0580d0ad9c253d738c1fd60063 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Tue, 28 May 2024 08:53:19 +0200 Subject: [PATCH] Fix wrong file path --- .github/workflows/printer-linter-pr-post.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/printer-linter-pr-post.yml b/.github/workflows/printer-linter-pr-post.yml index f96a418cad..4d784e7e2c 100644 --- a/.github/workflows/printer-linter-pr-post.yml +++ b/.github/workflows/printer-linter-pr-post.yml @@ -6,7 +6,7 @@ on: types: [completed] jobs: - clang-tidy-results: + printer-linter-result: # Trigger the job only if the previous (insecure) workflow completed successfully if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest @@ -46,7 +46,7 @@ jobs: const assert = require("node:assert").strict; const fs = require("fs"); function exportVar(varName, fileName, regEx) { - const val = fs.readFileSync("${{ github.workspace }}/clang-tidy-result/" + fileName, { + const val = fs.readFileSync("${{ github.workspace }}/printer-linter-result/" + fileName, { encoding: "ascii" }).trimEnd(); assert.ok(regEx.test(val), "Invalid value format for " + varName);