File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,16 @@ if [ -z "${TEMP}" ]; then
13
13
fi
14
14
fi
15
15
16
- INSTALL_SCRIPT=' https://raw.githubusercontent.com/reviewdog/reviewdog/fd59714416d6d9a1c0692d872e38e7f8448df4fc/ install.sh'
16
+ INSTALL_SCRIPT=" $GITHUB_ACTION_PATH / install-reviewdog .sh"
17
17
if [ " ${VERSION} " = ' nightly' ]; then
18
- INSTALL_SCRIPT=' https://raw.githubusercontent.com/reviewdog/nightly/30fccfe9f47f7e6fd8b3c38aa0da11a6c9f04de7/ install.sh'
18
+ INSTALL_SCRIPT=" $GITHUB_ACTION_PATH / install-nightly .sh"
19
19
VERSION=' latest'
20
20
fi
21
21
22
22
mkdir -p " ${TEMP} /reviewdog/bin"
23
23
24
24
echo ' ::group::🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog'
25
- (
26
- if command -v curl 2>&1 > /dev/null; then
27
- curl -sfL " ${INSTALL_SCRIPT} "
28
- elif command -v wget 2>&1 > /dev/null; then
29
- wget -O - " ${INSTALL_SCRIPT} "
30
- else
31
- echo " curl or wget is required" >&2
32
- exit 1
33
- fi
34
- ) | sh -s -- -b " ${TEMP} /reviewdog/bin" " ${VERSION} " 2>&1
25
+ cat " ${INSTALL_SCRIPT} " | sh -s -- -b " ${TEMP} /reviewdog/bin" " ${VERSION} " 2>&1
35
26
echo ' ::endgroup::'
36
27
37
28
echo " ${TEMP} /reviewdog/bin" >> " ${GITHUB_PATH} "
You can’t perform that action at this time.
0 commit comments