Print working directory in log

This commit is contained in:
Stephanie Wilde-Hobbs 2020-05-21 11:22:13 +01:00
parent 6c1477a5f7
commit ce07c59e1a
No known key found for this signature in database
GPG key ID: CEF2BBFE18BD0E67
3 changed files with 3 additions and 3 deletions

View file

@ -2403,7 +2403,7 @@ function runLint(lintPath) {
throw new Error(`working-directory (${workingDirectory}) was not a path`); throw new Error(`working-directory (${workingDirectory}) was not a path`);
} }
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight(); const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight();
core.info(`Running [${cmd}] ...`); core.info(`Running [${cmd}] in [${workingDirectory}] ...`);
const startedAt = Date.now(); const startedAt = Date.now();
try { try {
const res = yield execShellCommand(cmd, { cwd: workingDirectory }); const res = yield execShellCommand(cmd, { cwd: workingDirectory });

2
dist/run/index.js vendored
View file

@ -2415,7 +2415,7 @@ function runLint(lintPath) {
throw new Error(`working-directory (${workingDirectory}) was not a path`); throw new Error(`working-directory (${workingDirectory}) was not a path`);
} }
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight(); const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight();
core.info(`Running [${cmd}] ...`); core.info(`Running [${cmd}] in [${workingDirectory}] ...`);
const startedAt = Date.now(); const startedAt = Date.now();
try { try {
const res = yield execShellCommand(cmd, { cwd: workingDirectory }); const res = yield execShellCommand(cmd, { cwd: workingDirectory });

View file

@ -63,7 +63,7 @@ async function runLint(lintPath: string): Promise<void> {
} }
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight() const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight()
core.info(`Running [${cmd}] ...`) core.info(`Running [${cmd}] in [${workingDirectory}] ...`)
const startedAt = Date.now() const startedAt = Date.now()
try { try {
const res = await execShellCommand(cmd, { cwd: workingDirectory }) const res = await execShellCommand(cmd, { cwd: workingDirectory })