mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-12 14:01:14 +00:00
add directory arg
This commit is contained in:
parent
4cfaabcf34
commit
c29c0c454f
2 changed files with 7 additions and 0 deletions
|
|
@ -9,6 +9,11 @@ inputs:
|
|||
flags:
|
||||
description: 'GolangCI command line flags'
|
||||
required: false
|
||||
directory:
|
||||
description: 'Working directory'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
|
|
|
|||
|
|
@ -2,5 +2,7 @@
|
|||
|
||||
echo 'golangci-lint-action: start'
|
||||
|
||||
cd "${GITHUB_WORKSPACE}/${DIRECTORY}" || exit 1
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
golangci-lint run --out-format github-actions ${FLAGS}
|
||||
|
|
|
|||
Loading…
Reference in a new issue