Skip to content

Commit

Permalink
Merge pull request #43 from reviewdog/fix_plugins_not_installed_bug
Browse files Browse the repository at this point in the history
Fixes plugins not installed bug #41
  • Loading branch information
asbjornu authored Jul 23, 2021
2 parents ea91307 + 0a38f35 commit 4501ea8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ fi

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

echo "[action-remark-lint] Versions: $(remark --version), remark-lint: $(npm remark-lint --version)"

# Install plugins if package.sjon file is present
if [[ -f "package.json" ]]; then
echo "[action-remark-lint] Installing npm dependencies..."
npm install
fi

# NOTE: ${VAR,,} Is bash 4.0 syntax to make strings lowercase.
echo "[action-remark-lint] Checking markdown code with the remark-lint linter and reviewdog..."
remark --use=remark-preset-lint-recommended . ${INPUT_REMARK_ARGS} 2>&1 |
Expand Down

0 comments on commit 4501ea8

Please sign in to comment.