Skip to content

Commit 53ddd73

Browse files
committed
possibly fix workflow not dying
1 parent 23633be commit 53ddd73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.gradle.kts

+4-3
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,22 @@ subprojects {
105105
}
106106

107107
repositories {
108-
if (System.getenv("MAVEN_TOKEN") != null) {
108+
val mavenToken = System.getenv("MAVEN_TOKEN")
109+
if (mavenToken != null && mavenToken.isNotEmpty()) {
109110
if (System.getenv("RELEASE_BUILD")?.toBoolean() == true) {
110111
maven {
111112
url = uri("https://maven.ithundxr.dev/releases")
112113
credentials {
113114
username = "railways-github"
114-
password = System.getenv("MAVEN_TOKEN")
115+
password = mavenToken
115116
}
116117
}
117118
} else {
118119
maven {
119120
url = uri("https://maven.ithundxr.dev/snapshots")
120121
credentials {
121122
username = "railways-github"
122-
password = System.getenv("MAVEN_TOKEN")
123+
password = mavenToken
123124
}
124125
}
125126
}

0 commit comments

Comments
 (0)