From bc23088233092241e06af4010bbfbcfc64d81c07 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 6 May 2024 18:24:33 +0200 Subject: [PATCH] chore: generate --- dist/post_run/index.js | 8 ++++++-- dist/run/index.js | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 87f6781..53d0a84 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -89292,12 +89292,16 @@ async function runLint(lintPath, patchPath) { const userArgNames = new Set(userArgsList.map(([key]) => key)); const annotations = core.getBooleanInput(`annotations`); if (annotations) { + let ghaFormat = `github-actions-problem-matchers`; + if (!core.getBooleanInput(`problem-matchers`)) { + ghaFormat = `github-actions`; + } const formats = (userArgsMap.get("out-format") || "") .trim() .split(",") .filter((f) => f.length > 0) - .filter((f) => !f.startsWith(`github-actions`)) - .concat("github-actions") + .filter((f) => !f.startsWith(ghaFormat)) + .concat(ghaFormat) .join(","); addedArgs.push(`--out-format=${formats}`); userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim(); diff --git a/dist/run/index.js b/dist/run/index.js index 11ef531..7b892e7 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -89292,12 +89292,16 @@ async function runLint(lintPath, patchPath) { const userArgNames = new Set(userArgsList.map(([key]) => key)); const annotations = core.getBooleanInput(`annotations`); if (annotations) { + let ghaFormat = `github-actions-problem-matchers`; + if (!core.getBooleanInput(`problem-matchers`)) { + ghaFormat = `github-actions`; + } const formats = (userArgsMap.get("out-format") || "") .trim() .split(",") .filter((f) => f.length > 0) - .filter((f) => !f.startsWith(`github-actions`)) - .concat("github-actions") + .filter((f) => !f.startsWith(ghaFormat)) + .concat(ghaFormat) .join(","); addedArgs.push(`--out-format=${formats}`); userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();