From d3ea46b6e2c66d55192395d663e99e8fb4f8e4e6 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sun, 26 Apr 2020 04:39:27 +0300 Subject: [PATCH] add format --- .github/workflows/golangci.yml | 1 + action.yml | 5 +++++ entrypoint.sh | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci.yml b/.github/workflows/golangci.yml index 961c601..6096b5e 100644 --- a/.github/workflows/golangci.yml +++ b/.github/workflows/golangci.yml @@ -12,4 +12,5 @@ jobs: with: github_token: ${{ secrets.github_token }} directory: sample + format: colored-line-number flags: --issues-exit-code 0 diff --git a/action.yml b/action.yml index 6d3d48d..b6ba408 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,11 @@ inputs: description: 'Working directory' required: false default: '' + format: + description: 'Output format of issues' + default: 'github-actions' + required: false + runs: using: 'docker' diff --git a/entrypoint.sh b/entrypoint.sh index 405c3dd..1ceda4b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,4 +5,4 @@ echo 'golangci-lint-action: start' cd "${GITHUB_WORKSPACE}/${DIRECTORY}" || exit 1 # shellcheck disable=SC2086 -golangci-lint run --out-format github-actions ${FLAGS} +golangci-lint run --out-format ${FORMAT} ${FLAGS}