Skip to content

Commit

Permalink
Merge pull request #1 from reviewdog/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
haya14busa authored Sep 26, 2019
2 parents 5f09b6d + 03ebd62 commit dfd2f77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

cd "$GITHUB_WORKSPACE"
cd "${GITHUB_WORKSPACE}" || exit

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

if [ "${INPUT_REPORTER}" == 'github-pr-review' ]; then
if [ "${INPUT_REPORTER}" = 'github-pr-review' ]; then
# erroformat: https://git.io/JeGMU
shellcheck -f json ${INPUT_SHELLCHECK_FLAGS:-'--external-sources'} $(find "${INPUT_PATH:-'.'}" -not -path "${INPUT_EXCLUDE}" -type f -name "${INPUT_PATTERN:-'*.sh'}") \
| jq -r '.[] | "\(.file):\(.line):\(.column):\(.level):\(.message) [SC\(.code)](https://github.com/koalaman/shellcheck/wiki/SC\(.code))"' \
Expand Down
2 changes: 2 additions & 0 deletions testdata/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo $1 # Unquoted variables
find . -name *.ogg # Unquoted find/grep patterns

0 comments on commit dfd2f77

Please sign in to comment.