feat: add option to set a different short length than git defaults

This commit is contained in:
rlespinasse
2022-03-21 09:14:25 +01:00
committed by Romain Lespinasse
parent 88f3ee8f6f
commit dbbe21b72b
4 changed files with 127 additions and 33 deletions

View File

@@ -7,3 +7,8 @@ elif [ "${INPUT_SLUG_MAXLENGTH}" != "nolimit" ] && [ ! "${INPUT_SLUG_MAXLENGTH}"
echo "::error ::slug-maxlength must be a number or equals to 'nolimit'"
exit 1
fi
if [ ! "${INPUT_SHORT_LENGTH}" -eq "${INPUT_SHORT_LENGTH}" ] 2>/dev/null; then
echo "::error ::short-length must be a number"
exit 1
fi