mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-08-09 02:37:03 +00:00
Migrate to ESMBundler and node 24 (#345)
This commit is contained in:
+7
-6
@@ -136,16 +136,17 @@ function setOutputFormat() {
|
||||
}
|
||||
|
||||
function addMatchers(): void {
|
||||
const matchersPath = path.join(
|
||||
__dirname,
|
||||
`..${path.sep}..`,
|
||||
".github",
|
||||
"matchers",
|
||||
);
|
||||
const actionRoot = getActionRoot();
|
||||
const matchersPath = path.join(actionRoot, ".github", "matchers");
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, "check.json")}`);
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, "format.json")}`);
|
||||
}
|
||||
|
||||
function getActionRoot(): string {
|
||||
const entrypoint = process.argv[1] ?? process.cwd();
|
||||
return path.resolve(path.dirname(entrypoint), "..", "..");
|
||||
}
|
||||
|
||||
async function runRuff(
|
||||
ruffExecutablePath: string,
|
||||
args: string[],
|
||||
|
||||
Reference in New Issue
Block a user