feat: add option to set a different slug length than 63

This commit is contained in:
Romain Lespinasse
2022-03-19 22:50:08 +01:00
committed by GitHub
parent cd9871b66e
commit 88f3ee8f6f
4 changed files with 110 additions and 9 deletions

9
preflight.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [ -z "${INPUT_SLUG_MAXLENGTH}" ]; then
echo "::error ::slug-maxlength cannot be empty"
exit 1
elif [ "${INPUT_SLUG_MAXLENGTH}" != "nolimit" ] && [ ! "${INPUT_SLUG_MAXLENGTH}" -eq "${INPUT_SLUG_MAXLENGTH}" ] 2>/dev/null; then
echo "::error ::slug-maxlength must be a number or equals to 'nolimit'"
exit 1
fi