From b47c77ee166ec8f45c2b25f803a2c37b558b224b Mon Sep 17 00:00:00 2001 From: weisj <31143295+weisJ@users.noreply.github.com> Date: Tue, 6 Jul 2021 23:07:40 +0200 Subject: [PATCH] Actions: Log branch name --- build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle.kts b/build.gradle.kts index 9770e8dc..cbf24bec 100644 --- a/build.gradle.kts +++ b/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")