Skip to content

Commit

Permalink
textlint exists check fallbacked
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho committed Oct 23, 2020
1 parent 0147e52 commit 518a0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 518a0c4

Please sign in to comment.