From 5801380586b1280b9d2b0bf8ca30fd8578c6a865 Mon Sep 17 00:00:00 2001 From: Tom Lienard Date: Sat, 16 Nov 2024 08:59:50 +0000 Subject: [PATCH] fix: github action execution --- action/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/action/index.ts b/action/index.ts index d949fb5..972eabc 100644 --- a/action/index.ts +++ b/action/index.ts @@ -83,6 +83,13 @@ async function run(): Promise { await fsp.chmod(binaryPath, '777'); } + // Add to PATH + core.addPath(extractedPath); + + // Set output + core.setOutput('sherif-path', binaryPath); + core.info('Sherif has been installed successfully'); + // Prepare arguments const args = additionalArgs.split(' ').filter(arg => arg !== ''); @@ -96,7 +103,7 @@ async function run(): Promise { }; // Execute Sherif - const exitCode = await exec.exec(downloadPath, args, options); + const exitCode = await exec.exec(binaryPath, args, options); // Handle exit code if (exitCode !== 0) {