Skip to content

Commit c29c0c4

Browse files
committed
add directory arg
1 parent 4cfaabc commit c29c0c4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ inputs:
99
flags:
1010
description: 'GolangCI command line flags'
1111
required: false
12+
directory:
13+
description: 'Working directory'
14+
required: false
15+
default: ''
16+
1217
runs:
1318
using: 'docker'
1419
image: 'Dockerfile'

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22

33
echo 'golangci-lint-action: start'
44

5+
cd "${GITHUB_WORKSPACE}/${DIRECTORY}" || exit 1
6+
57
# shellcheck disable=SC2086
68
golangci-lint run --out-format github-actions ${FLAGS}

0 commit comments

Comments
 (0)