Add input add-problem-matchers (#517)

Allows to disable the adding of problem matchers

Closes: #511
This commit is contained in:
Kevin Stillhammer
2025-08-12 22:33:00 +02:00
committed by GitHub
parent d664c2a1d1
commit e5d42a2b46
6 changed files with 34 additions and 6 deletions

View File

@ -11,6 +11,7 @@ import {
} from "./download/download-version";
import {
activateEnvironment as activateEnvironmentInput,
addProblemMatchers,
cacheLocalPath,
checkSum,
enableCache,
@ -226,8 +227,10 @@ function setCacheDir(cacheLocalPath: string): void {
}
function addMatchers(): void {
const matchersPath = path.join(__dirname, `..${path.sep}..`, ".github");
core.info(`##[add-matcher]${path.join(matchersPath, "python.json")}`);
if (addProblemMatchers) {
const matchersPath = path.join(__dirname, `..${path.sep}..`, ".github");
core.info(`##[add-matcher]${path.join(matchersPath, "python.json")}`);
}
}
run();

View File

@ -21,6 +21,8 @@ export const toolDir = getToolDir();
export const serverUrl = core.getInput("server-url");
export const githubToken = core.getInput("github-token");
export const manifestFile = getManifestFile();
export const addProblemMatchers =
core.getInput("add-problem-matchers") === "true";
function getVersionFile(): string {
const versionFileInput = core.getInput("version-file");