Skip to content

Commit 504714c

Browse files
Adapt signing condition to include github actions CI (#69)
1 parent 8711517 commit 504714c

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
@@ -33,7 +33,7 @@ import org.gradle.internal.os.OperatingSystem
3333
fun isCi() = System.getenv("CI")?.equals("true") == true
3434

3535
fun Project.signingCondition(): Boolean {
36-
val branch = System.getenv()["CIRRUS_BRANCH"] ?: ""
36+
val branch = System.getenv("GITHUB_REF_NAME") ?: System.getenv("CIRRUS_BRANCH") ?: ""
3737
return (branch == "master" || branch.matches("branch-.+".toRegex())) &&
3838
gradle.taskGraph.hasTask(":artifactoryPublish")
3939
}

0 commit comments

Comments
 (0)