Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit a526d9e

Browse files
committed
Fix release branch
1 parent 5f944e1 commit a526d9e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@ curseforge {
127127
}
128128
}
129129

130+
def getBranch() {
131+
def ENV = System.getenv()
132+
if (ENV.GITHUB_REF) {
133+
def branch = ENV.GITHUB_REF
134+
return branch.substring(branch.lastIndexOf("/") + 1)
135+
}
136+
137+
return "unknown"
138+
}
139+
130140
import org.kohsuke.github.GHReleaseBuilder
131141
import org.kohsuke.github.GitHub
132142

0 commit comments

Comments
 (0)