add directory arg

This commit is contained in:
Aleksandr Razumov 2020-04-26 04:22:56 +03:00
parent 4cfaabcf34
commit c29c0c454f
No known key found for this signature in database
GPG Key ID: 1D14A82D2E311045
2 changed files with 7 additions and 0 deletions

View File

@ -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'

View File

@ -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}