Skip to content

Commit

Permalink
Merge pull request #24 from reviewdog/fail-if-reviewdog-is-not-installed
Browse files Browse the repository at this point in the history
fail if reviewdog is not installed
  • Loading branch information
shogo82148 committed Apr 27, 2023
2 parents 7b19112 + 4b7c7d9 commit 8dc4778
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ runs:
REVIEWDOG_VERSION: ${{ inputs.reviewdog_version }}
REVIEWDOG_TEMPDIR: ${{ runner.temp }}
- run: |
if ! command -v reviewdog >/dev/null 2>&1; then
echo "reviewdog was not installed"
exit 1
fi
echo "::group::📖 reviewdog -h"
reviewdog -h 2>&1 || true
echo "::endgroup::"
Expand Down
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

VERSION="${REVIEWDOG_VERSION:-latest}"

TEMP="${REVIEWDOG_TEMPDIR}"
Expand Down

0 comments on commit 8dc4778

Please sign in to comment.