diff --git a/create-featurenet/action.yml b/create-featurenet/action.yml index 7b02b4e..d7dfb4b 100644 --- a/create-featurenet/action.yml +++ b/create-featurenet/action.yml @@ -127,7 +127,8 @@ runs: echo "!!! Invalid sudo-account-id" exit 1 fi - if [[ ! '${{ inputs.finality-version }}' =~ ^[0-9]+$ ]]; then + if [[ '${{ inputs.finality-version }}' != "" && \ + ! '${{ inputs.finality-version }}' =~ ^[0-9]+$ ]]; then echo "!!! finality-version must be a cardinal number" exit 1 fi