Skip to content

Commit 38e1018

Browse files
authored
feat: improve log about pwd/cwd (#1033)
1 parent 21e9e6b commit 38e1018

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

dist/post_run/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/run/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/run.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
233233
}
234234
}
235235

236-
const workingDirectory = core.getInput(`working-directory`)
237236
const cmdArgs: ExecOptions = {}
237+
238+
const workingDirectory = core.getInput(`working-directory`)
238239
if (workingDirectory) {
239240
if (!fs.existsSync(workingDirectory) || !fs.lstatSync(workingDirectory).isDirectory()) {
240241
throw new Error(`working-directory (${workingDirectory}) was not a path`)
@@ -247,7 +248,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
247248

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

250-
core.info(`Running [${cmd}] in [${cmdArgs.cwd || ``}] ...`)
251+
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`)
251252

252253
const startedAt = Date.now()
253254
try {

0 commit comments

Comments
 (0)