-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from reviewdog/fix-issue19
fix #19
- Loading branch information
Showing
5 changed files
with
61 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
name: 'Setup reviewdog' | ||
description: '🐶 This action sets up reviewdog' | ||
name: "Setup reviewdog" | ||
description: "🐶 This action sets up reviewdog" | ||
inputs: | ||
reviewdog_version: | ||
description: 'reviewdog version. [latest,nightly,vX.Y.Z]' | ||
default: 'latest' | ||
description: "reviewdog version. [latest,nightly,vX.Y.Z]" | ||
default: "latest" | ||
runs: | ||
using: 'composite' | ||
using: "composite" | ||
steps: | ||
- run: $GITHUB_ACTION_PATH/install.sh | ||
shell: bash | ||
- name: install reviewdog | ||
run: | | ||
set -eu | ||
"$GITHUB_ACTION_PATH/install.sh" | ||
shell: sh | ||
env: | ||
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::" | ||
shell: bash | ||
- name: check reviewdog is successfully installed | ||
run: | | ||
set -eu | ||
"$GITHUB_ACTION_PATH/check-installed.sh" | ||
shell: sh | ||
|
||
# Ref: https://haya14busa.github.io/github-action-brandings/ | ||
branding: | ||
icon: 'terminal' | ||
color: 'gray-dark' | ||
icon: "terminal" | ||
color: "gray-dark" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
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::" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters