Skip to content

Commit 2ae94a0

Browse files
committed
Set fail-level to fatal to stop erb_lint process
1 parent 2ee2ce6 commit 2ae94a0

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
erblint_version:
99
description: 'erb_lint version'
1010
erblint_flags:
11-
description: 'erb_lint flags. (erb_lint --lint-all --format compact --allow-no-files)'
11+
description: 'erb_lint flags. (erb_lint --lint-all --format compact --allow-no-files --fail-level F)'
1212
default: ''
1313
tool_name:
1414
description: 'Tool name to use for reviewdog reporter'

bin/release

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if [ -z "$VERSION" ]; then
1212
exit 1
1313
fi
1414

15+
git push
16+
git pull
1517
git fetch --tags
1618
echo "Release version: $VERSION"
1719
MAJOR=$(echo "$VERSION" | cut -d. -f1)

script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ echo '::group:: Running erb_lint with reviewdog 🐶 ...'
5454
ERBLINT_REPORT_FILE="$TEMP_PATH"/erblint_report
5555

5656
# shellcheck disable=SC2086
57-
${BUNDLE_EXEC}erb_lint --lint-all --format compact --allow-no-files ${INPUT_ERBLINT_FLAGS} > "$ERBLINT_REPORT_FILE"
57+
${BUNDLE_EXEC}erb_lint --lint-all --format compact --allow-no-files --fail-level F ${INPUT_ERBLINT_FLAGS} > "$ERBLINT_REPORT_FILE"
5858
reviewdog < "$ERBLINT_REPORT_FILE" \
5959
-efm="%f:%l:%c: %m" \
6060
-name="${INPUT_TOOL_NAME}" \

0 commit comments

Comments
 (0)