Skip to content

Commit 879a5ce

Browse files
authored
Change signing condition to only match branch by prefix (#22)
1 parent 7b17297 commit 879a5ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • gradle-modules/src/main/kotlin/org/sonarsource/cloudnative/gradle

gradle-modules/src/main/kotlin/org/sonarsource/cloudnative/gradle/BuildUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import org.gradle.internal.os.OperatingSystem
3030

3131
fun Project.signingCondition(): Boolean {
3232
val branch = System.getenv()["CIRRUS_BRANCH"] ?: ""
33-
return (branch == "master" || branch.matches("branch-[\\d.]+".toRegex())) &&
33+
return (branch == "master" || branch.matches("branch-.+".toRegex())) &&
3434
gradle.taskGraph.hasTask(":artifactoryPublish")
3535
}
3636

0 commit comments

Comments
 (0)