mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-07 02:56:53 +00:00
Add input add-problem-matchers (#517)
Allows to disable the adding of problem matchers Closes: #511
This commit is contained in:
parent
d664c2a1d1
commit
e5d42a2b46
6 changed files with 34 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue