Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
818ec4d51a | |||
1c50240be2 |
5
dist/post_run/index.js
generated
vendored
5
dist/post_run/index.js
generated
vendored
@ -94124,7 +94124,10 @@ async function runLint(binPath, patchPath) {
|
|||||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||||
}
|
}
|
||||||
if (core.getBooleanInput(`verify`, { required: true })) {
|
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()}] ...`);
|
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||||
const res = await execShellCommand(cmdVerify, cmdArgs);
|
const res = await execShellCommand(cmdVerify, cmdArgs);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
|
5
dist/run/index.js
generated
vendored
5
dist/run/index.js
generated
vendored
@ -94124,7 +94124,10 @@ async function runLint(binPath, patchPath) {
|
|||||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||||
}
|
}
|
||||||
if (core.getBooleanInput(`verify`, { required: true })) {
|
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()}] ...`);
|
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||||
const res = await execShellCommand(cmdVerify, cmdArgs);
|
const res = await execShellCommand(cmdVerify, cmdArgs);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "golanci-lint-action",
|
"name": "golanci-lint-action",
|
||||||
"version": "6.4.0",
|
"version": "6.4.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "golanci-lint-action",
|
"name": "golanci-lint-action",
|
||||||
"version": "6.4.0",
|
"version": "6.4.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": "^4.0.0",
|
"@actions/cache": "^4.0.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "golanci-lint-action",
|
"name": "golanci-lint-action",
|
||||||
"version": "6.4.0",
|
"version": "6.4.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "golangci-lint github action",
|
"description": "golangci-lint github action",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
|
@ -138,7 +138,10 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (core.getBooleanInput(`verify`, { required: true })) {
|
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()}] ...`)
|
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user