add distribution files

This commit is contained in:
Florian Gessner 2022-05-22 10:39:24 +02:00
parent 86bb75a024
commit a8cbf3c997
2 changed files with 4 additions and 2 deletions

View file

@ -68277,7 +68277,8 @@ function runLint(lintPath, patchPath) {
if (userArgNames.has(`out-format`)) { if (userArgNames.has(`out-format`)) {
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`); throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
} }
addedArgs.push(`--out-format=github-actions`); const outputFile = core.getInput(`output-file`, { required: false }).trim();
addedArgs.push(`--out-format=github-actions${outputFile ? "," + outputFile : ""}`);
if (patchPath) { if (patchPath) {
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) { if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
throw new Error(`please, don't specify manually --new* args when requesting only new issues`); throw new Error(`please, don't specify manually --new* args when requesting only new issues`);

3
dist/run/index.js vendored
View file

@ -68277,7 +68277,8 @@ function runLint(lintPath, patchPath) {
if (userArgNames.has(`out-format`)) { if (userArgNames.has(`out-format`)) {
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`); throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
} }
addedArgs.push(`--out-format=github-actions`); const outputFile = core.getInput(`output-file`, { required: false }).trim();
addedArgs.push(`--out-format=github-actions${outputFile ? "," + outputFile : ""}`);
if (patchPath) { if (patchPath) {
if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) { if (userArgNames.has(`new`) || userArgNames.has(`new-from-rev`) || userArgNames.has(`new-from-patch`)) {
throw new Error(`please, don't specify manually --new* args when requesting only new issues`); throw new Error(`please, don't specify manually --new* args when requesting only new issues`);