Migrate to ESMBundler and node 24 (#345)

This commit is contained in:
Kevin Stillhammer
2026-03-28 15:52:59 +00:00
committed by GitHub
parent f611dfc122
commit 0be154b683
22 changed files with 66801 additions and 77877 deletions
+7 -6
View File
@@ -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[],