Skip to content

Commit

Permalink
Fix release name
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonophore committed May 30, 2024
1 parent 014175f commit ea03189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ nexusPublishing {
* @param name The original release name to be sanitized.
* @return A sanitized release name that conforms to Helm's naming conventions.
*/
fun sanitizeHelmReleaseName(name: String?): String {
fun sanitizeHelmReleaseName(name: String?): String? {
if (name == null) {
throw GradleException("Helm release name is not set")
return null
}

var sanitized = name.toLowerCase().replace(Regex("[^a-z0-9-]"), "-")
Expand Down

0 comments on commit ea03189

Please sign in to comment.