Skip to content

Commit

Permalink
Merge pull request #31 from reviewdog/bump-go1.20
Browse files Browse the repository at this point in the history
bump Go 1.20. Closes #30
  • Loading branch information
shogo82148 committed Jun 14, 2023
2 parents 1f6e6c3 + 1788d5d commit 249222a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.16
- run: GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
go-version: "1.20"
- run: go install mvdan.cc/sh/v3/cmd/shfmt@latest

- run: shfmt -i 2 -ci -w .
- name: suggester / shfmt
Expand Down
7 changes: 5 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ git diff >"${TMPFILE}"

git stash -u

# shellcheck disable=SC2086
reviewdog \
-name="${INPUT_TOOL_NAME:-reviewdog-suggester}" \
-f=diff \
Expand All @@ -20,12 +21,14 @@ reviewdog \
-filter-mode="${INPUT_FILTER_MODE}" \
-fail-on-error="${INPUT_FAIL_ON_ERROR}" \
-level="${INPUT_LEVEL}" \
${INPUT_REVIEWDOG_FLAGS} <"${TMPFILE}" || EXIT_CODE=$?
${INPUT_REVIEWDOG_FLAGS} <"${TMPFILE}" # INPUT_REVIEWDOG_FLAGS is intentionally split to pass multiple flags

EXIT_CODE=$?

if [ "${INPUT_CLEANUP}" = "true" ]; then
git stash drop || true
else
git stash pop || true
fi

exit ${EXIT_CODE}
exit "${EXIT_CODE}"

0 comments on commit 249222a

Please sign in to comment.