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();