mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-06-30 09:51:45 +00:00
feat: add option to set a different slug length than 63
This commit is contained in:
committed by
GitHub
parent
cd9871b66e
commit
88f3ee8f6f
9
preflight.sh
Executable file
9
preflight.sh
Executable 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
|
||||
Reference in New Issue
Block a user