Fix input check for helm test workflow (#1938)
Signed-off-by: ZePan110 <ze.pan@intel.com>
This commit is contained in:
2
.github/workflows/_helm-e2e.yml
vendored
2
.github/workflows/_helm-e2e.yml
vendored
@@ -137,7 +137,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
example: ${{ inputs.example }}
|
example: ${{ inputs.example }}
|
||||||
run: |
|
run: |
|
||||||
if [[ ! "$example" =~ ^[a-zA-Z]{1,20}$ ]] || [[ "$example" =~ \.\. ]] || [[ "$example" == -* || "$example" == *- ]]; then
|
if [[ ! "$example" =~ ^[a-zA-Z0-9]{1,20}$ ]] || [[ "$example" =~ \.\. ]] || [[ "$example" == -* || "$example" == *- ]]; then
|
||||||
echo "Error: Invalid input - only lowercase alphanumeric and internal hyphens allowed"
|
echo "Error: Invalid input - only lowercase alphanumeric and internal hyphens allowed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user