mirror of
https://github.com/actions/setup-java.git
synced 2026-07-18 14:12:58 +00:00
e40a8e0642
* Add problem matcher opt-out Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 38eb7886-7ea3-4e4d-8d5f-e3f975135053 * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
15 lines
434 B
TypeScript
15 lines
434 B
TypeScript
import * as core from '@actions/core';
|
|
import {INPUT_PROBLEM_MATCHER} from './constants.js';
|
|
import {getBooleanInput} from './util.js';
|
|
|
|
export function configureProblemMatcher(matcherPath: string): void {
|
|
const problemMatcherEnabled = getBooleanInput(INPUT_PROBLEM_MATCHER, true);
|
|
|
|
if (!problemMatcherEnabled) {
|
|
core.debug('Java problem matcher is disabled');
|
|
return;
|
|
}
|
|
|
|
core.info(`##[add-matcher]${matcherPath}`);
|
|
}
|