Skip to content

Commit

Permalink
fix: naming rules e2e nodepool
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Jun 11, 2024
1 parent 43148fb commit 6f2f10b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/e2e-preset-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ jobs:
NAME_SUFFIX=${{ matrix.model.name }}
NAME_SUFFIX_WITHOUT_DASHES=${NAME_SUFFIX//-/} # Removing all '-' symbols
# Ensure the name does not start with a number
if [[ ${NAME_SUFFIX_WITHOUT_DASHES} =~ ^[0-9] ]]; then
NAME_SUFFIX_WITHOUT_DASHES="a${NAME_SUFFIX_WITHOUT_DASHES}"
fi
if [ ${#NAME_SUFFIX_WITHOUT_DASHES} -gt 12 ]; then
TRUNCATED_NAME_SUFFIX=${NAME_SUFFIX_WITHOUT_DASHES: -12}
else
Expand Down

0 comments on commit 6f2f10b

Please sign in to comment.