Skip to content

Commit

Permalink
fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Mar 2, 2022
1 parent 1774a4f commit 8580a7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
description: "output file"
default: "lychee/out.md"
required: false
fail-if-empty:
failIfEmpty:
description: "fail entire pipeline if no links were found"
default: true
required: false
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi

# Overwrite the error code in case no links were found
# and `fail-if-empty` is set to `true` (and it is by default)
if [ "${INPUT_FAIL_IF_EMPTY}" = true ]; then
if [ "${INPUT_FAILIFEMPTY}" = true ]; then
# This is a somewhat crude way to check the Markdown output of lychee
if echo "${LYCHEE_TMP}" | grep -E 'Total\s+\|\s+0'; then
echo "No links were found. This usually indicates a configuration error." >> "${LYCHEE_TMP}"
Expand Down

0 comments on commit 8580a7b

Please sign in to comment.