Skip to content

Commit fd140b2

Browse files
SONARPHP-1774 Update signing condition to support GITHUB_REF_NAME environment variable (#1588)
1 parent ba1e160 commit fd140b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build-logic/src/main/kotlin/org/sonarsource/php/BuildUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fun enforceJarSize(
3737
}
3838

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

0 commit comments

Comments
 (0)