diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 8586a27319..367f3bf47e 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -94124,7 +94124,10 @@ async function runLint(binPath, patchPath) { cmdArgs.cwd = path.resolve(workingDirectory); } if (core.getBooleanInput(`verify`, { required: true })) { - const cmdVerify = `${binPath} config verify`; + let cmdVerify = `${binPath} config verify`; + if (userArgsMap.get("config")) { + cmdVerify += ` --config=${userArgsMap.get("config")}`; + } core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`); const res = await execShellCommand(cmdVerify, cmdArgs); printOutput(res); diff --git a/dist/run/index.js b/dist/run/index.js index b9e694e10a..c9d892bcb2 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -94124,7 +94124,10 @@ async function runLint(binPath, patchPath) { cmdArgs.cwd = path.resolve(workingDirectory); } if (core.getBooleanInput(`verify`, { required: true })) { - const cmdVerify = `${binPath} config verify`; + let cmdVerify = `${binPath} config verify`; + if (userArgsMap.get("config")) { + cmdVerify += ` --config=${userArgsMap.get("config")}`; + } core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`); const res = await execShellCommand(cmdVerify, cmdArgs); printOutput(res); diff --git a/package-lock.json b/package-lock.json index 8db02beb43..946bd561c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "golanci-lint-action", - "version": "6.4.0", + "version": "6.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "golanci-lint-action", - "version": "6.4.0", + "version": "6.4.1", "license": "MIT", "dependencies": { "@actions/cache": "^4.0.0", diff --git a/package.json b/package.json index 6462a8eb68..f45a6fa282 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "golanci-lint-action", - "version": "6.4.0", + "version": "6.4.1", "private": true, "description": "golangci-lint github action", "main": "dist/main.js", diff --git a/src/run.ts b/src/run.ts index 3addc14efa..19683f9a57 100644 --- a/src/run.ts +++ b/src/run.ts @@ -138,7 +138,10 @@ async function runLint(binPath: string, patchPath: string): Promise { } if (core.getBooleanInput(`verify`, { required: true })) { - const cmdVerify = `${binPath} config verify` + let cmdVerify = `${binPath} config verify` + if (userArgsMap.get("config")) { + cmdVerify += ` --config=${userArgsMap.get("config")}` + } core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`)