Skip to content

Commit cf2f504

Browse files
committed
Enhance
Signed-off-by: ZePan110 <[email protected]>
1 parent 11b5c92 commit cf2f504

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/_helm-e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ jobs:
135135
env:
136136
example: ${{ inputs.example }}
137137
run: |
138-
if [[ ! "$example" =~ ^[a-z0-9-]{1,20}$ ]] || [[ "$example" =~ \.\. ]] || [[ "$example" == -* || "$example" == *- ]]; then
138+
if [[ ! "$example" =~ ^[a-zA-Z]{1,20}$ ]] || [[ "$example" =~ \.\. ]] || [[ "$example" == -* || "$example" == *- ]]; then
139139
echo "Error: Invalid input - only lowercase alphanumeric and internal hyphens allowed"
140140
exit 1
141141
fi
142-
SAFE_PREFIX="safe-"
143-
CHART_NAME="${SAFE_PREFIX}$(echo "$example" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]//g')"
142+
SAFE_PREFIX="kb-"
143+
CHART_NAME="${SAFE_PREFIX}$(echo "$example" | tr '[:upper:]' '[:lower:]')"
144144
RAND_SUFFIX=$(openssl rand -hex 2 | tr -dc 'a-f0-9')
145145
146146
cat <<EOF >> $GITHUB_ENV

0 commit comments

Comments
 (0)