Skip to content

Commit

Permalink
fix: github action execution
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiiBz committed Nov 16, 2024
1 parent 433113c commit 5801380
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ async function run(): Promise<void> {
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 !== '');

Expand All @@ -96,7 +103,7 @@ async function run(): Promise<void> {
};

// Execute Sherif
const exitCode = await exec.exec(downloadPath, args, options);
const exitCode = await exec.exec(binaryPath, args, options);

// Handle exit code
if (exitCode !== 0) {
Expand Down

0 comments on commit 5801380

Please sign in to comment.