Skip to content

Commit 9c125e6

Browse files
committed
Fix reviewdog install
1 parent 221ab50 commit 9c125e6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ It's same as `-level` flag of reviewdog.
5555
### `reporter`
5656

5757
Optional. Reporter of reviewdog command [`github-pr-check`, `github-pr-review`].
58-
The default is `github-check`.
58+
The default is `github-pr-check`.
5959

6060
### `fail_level`
6161

script.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ set -e
44
set -o pipefail
55

66
cd "${GITHUB_WORKSPACE}/${INPUT_WORKDIR}" || exit
7-
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
87

98
TEMP_PATH="$(mktemp -d)"
109
PATH="${TEMP_PATH}:$PATH"
1110

1211
echo '::group::🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog'
13-
curl -sfL "https://raw.githubusercontent.com/reviewdog/reviewdog/${REVIEWDOG_VERSION}/install.sh" | sh -s -- -b "${TEMP_PATH}" "${REVIEWDOG_VERSION}" 2>&1
12+
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/fd59714416d6d9a1c0692d872e38e7f8448df4fc/install.sh | sh -s -- -b "${TEMP_PATH}" "${REVIEWDOG_VERSION}" 2>&1
1413
echo '::endgroup::'
1514

1615
if [ "${INPUT_SKIP_INSTALL}" = "false" ]; then
@@ -47,6 +46,8 @@ else
4746
BUNDLE_EXEC="bundle exec "
4847
fi
4948

49+
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
50+
5051
echo '::group:: Running erb_lint with reviewdog 🐶 ...'
5152
# shellcheck disable=SC2086
5253
${BUNDLE_EXEC}erb_lint --lint-all --format compact --allow-no-files --fail-level F --show-linter-names ${INPUT_ERBLINT_FLAGS} \

0 commit comments

Comments
 (0)