From e35df9e109b14fefa7a9b629bc71231626515469 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Thu, 12 Aug 2021 10:10:57 +0900 Subject: [PATCH 1/2] supress shellcheck warnings --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 7be15fb..7f92ad9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,7 @@ export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" +# shellcheck disable=SC2086 actionlint -oneline ${INPUT_ACTIONLINT_FLAGS} \ | reviewdog \ -efm="%f:%l:%c: %m" \ From 6d2c5a00b3bef4ef6ed9a9f31378229f1952fdd0 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Thu, 12 Aug 2021 10:11:54 +0900 Subject: [PATCH 2/2] handle exit code of reviewdog --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 7f92ad9..cc8e368 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,3 +12,6 @@ actionlint -oneline ${INPUT_ACTIONLINT_FLAGS} \ -fail-on-error="${INPUT_FAIL_ON_ERROR}" \ -level="${INPUT_LEVEL}" \ ${INPUT_REVIEWDOG_FLAGS} +exit_code=$? + +exit $exit_code