Compare commits

...

2 Commits

Author SHA1 Message Date
818ec4d51a 6.4.1 2025-02-14 13:57:12 +01:00
1c50240be2 fix: use config arg for verify (#1168) 2025-02-14 13:56:21 +01:00
5 changed files with 15 additions and 6 deletions

5
dist/post_run/index.js generated vendored
View File

@ -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);

5
dist/run/index.js generated vendored
View File

@ -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);

4
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -138,7 +138,10 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
}
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()}] ...`)