Skip to content

Commit

Permalink
fix: path patch (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovic Fernandez authored and GitHub committed Feb 10, 2025
1 parent d9c1296 commit b85ce4f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dist/post_run/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/run/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async function prepareEnv(): Promise<Env> {

core.info(`Prepared env in ${Date.now() - startedAt}ms`)

return { binPath: binPath, patchPath }
return { binPath, patchPath }
}

type ExecRes = {
Expand All @@ -173,10 +173,10 @@ const printOutput = (res: ExecRes): void => {
}
}

async function runLint(lintPath: string, patchPath: string): Promise<void> {
async function runLint(binPath: string, patchPath: string): Promise<void> {
const debug = core.getInput(`debug`)
if (debug.split(`,`).includes(`cache`)) {
const res = await execShellCommand(`${lintPath} cache status`)
const res = await execShellCommand(`${binPath} cache status`)
printOutput(res)
}

Expand Down Expand Up @@ -266,7 +266,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
cmdArgs.cwd = path.resolve(workingDirectory)
}

const cmd = `${lintPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd()
const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd()

core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`)

Expand Down

0 comments on commit b85ce4f

Please sign in to comment.