Skip to content

Commit 4c8c7e7

Browse files
committed
Fixes gradle error when GITHUB_ACTOR isn't set
1 parent a44d9cf commit 4c8c7e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.apache.commons.lang3.StringUtils.defaultIfBlank
12
import java.net.URLEncoder
23

34
plugins {
@@ -97,7 +98,7 @@ publishing {
9798
url =
9899
uri(
99100
"https://maven.pkg.github.com/" + URLEncoder.encode(
100-
System.getenv("GITHUB_ACTOR"),
101+
defaultIfBlank(System.getenv("GITHUB_ACTOR"), ""),
101102
"UTF-8"
102103
) + "/keycloak-kubernetes-authenticator"
103104
)

0 commit comments

Comments
 (0)