mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-14 23:11:14 +00:00
chore: generate
This commit is contained in:
parent
6fa8b5b204
commit
bc23088233
2 changed files with 12 additions and 4 deletions
8
dist/post_run/index.js
generated
vendored
8
dist/post_run/index.js
generated
vendored
|
|
@ -89292,12 +89292,16 @@ async function runLint(lintPath, patchPath) {
|
|||
const userArgNames = new Set(userArgsList.map(([key]) => key));
|
||||
const annotations = core.getBooleanInput(`annotations`);
|
||||
if (annotations) {
|
||||
let ghaFormat = `github-actions-problem-matchers`;
|
||||
if (!core.getBooleanInput(`problem-matchers`)) {
|
||||
ghaFormat = `github-actions`;
|
||||
}
|
||||
const formats = (userArgsMap.get("out-format") || "")
|
||||
.trim()
|
||||
.split(",")
|
||||
.filter((f) => f.length > 0)
|
||||
.filter((f) => !f.startsWith(`github-actions`))
|
||||
.concat("github-actions")
|
||||
.filter((f) => !f.startsWith(ghaFormat))
|
||||
.concat(ghaFormat)
|
||||
.join(",");
|
||||
addedArgs.push(`--out-format=${formats}`);
|
||||
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
||||
|
|
|
|||
8
dist/run/index.js
generated
vendored
8
dist/run/index.js
generated
vendored
|
|
@ -89292,12 +89292,16 @@ async function runLint(lintPath, patchPath) {
|
|||
const userArgNames = new Set(userArgsList.map(([key]) => key));
|
||||
const annotations = core.getBooleanInput(`annotations`);
|
||||
if (annotations) {
|
||||
let ghaFormat = `github-actions-problem-matchers`;
|
||||
if (!core.getBooleanInput(`problem-matchers`)) {
|
||||
ghaFormat = `github-actions`;
|
||||
}
|
||||
const formats = (userArgsMap.get("out-format") || "")
|
||||
.trim()
|
||||
.split(",")
|
||||
.filter((f) => f.length > 0)
|
||||
.filter((f) => !f.startsWith(`github-actions`))
|
||||
.concat("github-actions")
|
||||
.filter((f) => !f.startsWith(ghaFormat))
|
||||
.concat(ghaFormat)
|
||||
.join(",");
|
||||
addedArgs.push(`--out-format=${formats}`);
|
||||
userArgs = userArgs.replace(/--out-format=\S*/gi, "").trim();
|
||||
|
|
|
|||
Loading…
Reference in a new issue