mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-14 15:01:15 +00:00
Print working directory in log
This commit is contained in:
parent
6c1477a5f7
commit
ce07c59e1a
3 changed files with 3 additions and 3 deletions
2
dist/post_run/index.js
vendored
2
dist/post_run/index.js
vendored
|
|
@ -2403,7 +2403,7 @@ function runLint(lintPath) {
|
|||
throw new Error(`working-directory (${workingDirectory}) was not a path`);
|
||||
}
|
||||
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight();
|
||||
core.info(`Running [${cmd}] ...`);
|
||||
core.info(`Running [${cmd}] in [${workingDirectory}] ...`);
|
||||
const startedAt = Date.now();
|
||||
try {
|
||||
const res = yield execShellCommand(cmd, { cwd: workingDirectory });
|
||||
|
|
|
|||
2
dist/run/index.js
vendored
2
dist/run/index.js
vendored
|
|
@ -2415,7 +2415,7 @@ function runLint(lintPath) {
|
|||
throw new Error(`working-directory (${workingDirectory}) was not a path`);
|
||||
}
|
||||
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight();
|
||||
core.info(`Running [${cmd}] ...`);
|
||||
core.info(`Running [${cmd}] in [${workingDirectory}] ...`);
|
||||
const startedAt = Date.now();
|
||||
try {
|
||||
const res = yield execShellCommand(cmd, { cwd: workingDirectory });
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ async function runLint(lintPath: string): Promise<void> {
|
|||
}
|
||||
|
||||
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight()
|
||||
core.info(`Running [${cmd}] ...`)
|
||||
core.info(`Running [${cmd}] in [${workingDirectory}] ...`)
|
||||
const startedAt = Date.now()
|
||||
try {
|
||||
const res = await execShellCommand(cmd, { cwd: workingDirectory })
|
||||
|
|
|
|||
Loading…
Reference in a new issue