Skip to content

Commit d3ea46b

Browse files
committed
add format
1 parent 542ddbc commit d3ea46b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ jobs:
1212
with:
1313
github_token: ${{ secrets.github_token }}
1414
directory: sample
15+
format: colored-line-number
1516
flags: --issues-exit-code 0

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ inputs:
1313
description: 'Working directory'
1414
required: false
1515
default: ''
16+
format:
17+
description: 'Output format of issues'
18+
default: 'github-actions'
19+
required: false
20+
1621

1722
runs:
1823
using: 'docker'

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ echo 'golangci-lint-action: start'
55
cd "${GITHUB_WORKSPACE}/${DIRECTORY}" || exit 1
66

77
# shellcheck disable=SC2086
8-
golangci-lint run --out-format github-actions ${FLAGS}
8+
golangci-lint run --out-format ${FORMAT} ${FLAGS}

0 commit comments

Comments
 (0)