Skip to content

Commit

Permalink
fix: exclude option doesn't work (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryosukes authored Jan 19, 2023
1 parent 1b07070 commit 141ffd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
with:
reporter: github-check
level: info
exclude: Dockerfile.dockerignore

test-pr-review:
if: github.event_name == 'pull_request'
Expand All @@ -26,3 +27,4 @@ jobs:
with:
reporter: github-pr-review
filter_mode: diff_context
exclude: Dockerfile.dockerignore
3 changes: 2 additions & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

EXCLUDES=""
for exclude_path in $INPUT_EXCLUDE; do
EXCLUDES="$EXCLUDES --exclude='!$exclude_path'"
set -- --exclude="!${exclude_path}"
EXCLUDES="$EXCLUDES $*"
done

IGNORE_LIST=""
Expand Down
1 change: 1 addition & 0 deletions testdata/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git

0 comments on commit 141ffd8

Please sign in to comment.