mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-09-21 11:11:30 +00:00
Set output format to github (#24)
This was accidentally removed in the v2 release
This commit is contained in:
BIN
Binary file not shown.
@@ -35,6 +35,7 @@ async function run(): Promise<void> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
addRuffToPath(setupResult.ruffDir);
|
addRuffToPath(setupResult.ruffDir);
|
||||||
|
setOutputFormat();
|
||||||
core.setOutput("ruff-version", setupResult.version);
|
core.setOutput("ruff-version", setupResult.version);
|
||||||
core.info(`Successfully installed ruff version ${setupResult.version}`);
|
core.info(`Successfully installed ruff version ${setupResult.version}`);
|
||||||
|
|
||||||
@@ -86,6 +87,11 @@ function addRuffToPath(cachedPath: string): void {
|
|||||||
core.info(`Added ${cachedPath} to the path`);
|
core.info(`Added ${cachedPath} to the path`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setOutputFormat() {
|
||||||
|
core.exportVariable("RUFF_OUTPUT_FORMAT", "github");
|
||||||
|
core.info("Set RUFF_OUTPUT_FORMAT to github");
|
||||||
|
}
|
||||||
|
|
||||||
async function runRuff(
|
async function runRuff(
|
||||||
ruffExecutablePath: string,
|
ruffExecutablePath: string,
|
||||||
args: string[],
|
args: string[],
|
||||||
|
|||||||
Reference in New Issue
Block a user