Browse Source

Actions: Log branch name

pull/245/head
weisj 3 years ago
parent
commit
b47c77ee16
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 1
      build.gradle.kts

1
build.gradle.kts

@ -23,6 +23,7 @@ val enableGradleMetadata by props()
val skipAutostyle by props(false)
val isRelease = project.stringProperty("release").toBool()
val snapshotName = if (project.props.bool("useBranchSnapshotName")) {
println("Using branch as snashotName ${System.getenv("GITHUB_HEAD_REF")} (${grgit.branch.current()?.name ?: ""})")
System.getenv("GITHUB_HEAD_REF") ?: grgit.branch.current()?.name
} else {
project.stringProperty("snapshotName")

Loading…
Cancel
Save