mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-12 14:01:14 +00:00
add format
This commit is contained in:
parent
542ddbcf10
commit
d3ea46b6e2
3 changed files with 7 additions and 1 deletions
1
.github/workflows/golangci.yml
vendored
1
.github/workflows/golangci.yml
vendored
|
|
@ -12,4 +12,5 @@ jobs:
|
|||
with:
|
||||
github_token: ${{ secrets.github_token }}
|
||||
directory: sample
|
||||
format: colored-line-number
|
||||
flags: --issues-exit-code 0
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue