Skip to content

Commit

Permalink
fix: github action version
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiiBz committed Nov 16, 2024
1 parent 5801380 commit 3093be5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- uses: QuiiBz/sherif@v1
# Optionally, you can specify a version and arguments to run Sherif with:
# with:
# version: '1.0.1'
# version: 'v1.0.1'
# args: '--ignore-rule root-package-manager-field'

# Using `npx` to run Sherif
Expand Down
7 changes: 6 additions & 1 deletion action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32649,6 +32649,11 @@ function run() {
if (platform !== 'win32') {
yield 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 !== '');
// Configure output options to preserve colors
Expand All @@ -32658,7 +32663,7 @@ function run() {
})
};
// Execute Sherif
const exitCode = yield exec.exec(downloadPath, args, options);
const exitCode = yield exec.exec(binaryPath, args, options);
// Handle exit code
if (exitCode !== 0) {
throw new Error(`Sherif execution failed with exit code ${exitCode}`);
Expand Down

0 comments on commit 3093be5

Please sign in to comment.