From 518a0c4a7b0a3e99d4f9987d96262a11958b9d9f Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sat, 24 Oct 2020 01:25:42 +0900 Subject: [PATCH] textlint exists check fallbacked --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8af4ba1..2a26825 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,14 +5,14 @@ cd "$GITHUB_WORKSPACE" export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" # setup and check. -if npm ls textlint &> /dev/null; then +if [ -x "./node_modules/.bin/textlint" ]; then # pass : else npm ci fi -if npm ls textlint &> /dev/null; then +if [ -x "./node_modules/.bin/textlint" ]; then npx textlint --version else echo This repository was not configured for textlint, process done.