mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 14:45:55 +08:00
Fix wrong file path
This commit is contained in:
parent
811c859fc5
commit
5681bf6507
4
.github/workflows/printer-linter-pr-post.yml
vendored
4
.github/workflows/printer-linter-pr-post.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
types: [completed]
|
types: [completed]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clang-tidy-results:
|
printer-linter-result:
|
||||||
# Trigger the job only if the previous (insecure) workflow completed successfully
|
# 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' }}
|
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
const assert = require("node:assert").strict;
|
const assert = require("node:assert").strict;
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
function exportVar(varName, fileName, regEx) {
|
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"
|
encoding: "ascii"
|
||||||
}).trimEnd();
|
}).trimEnd();
|
||||||
assert.ok(regEx.test(val), "Invalid value format for " + varName);
|
assert.ok(regEx.test(val), "Invalid value format for " + varName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user