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

Commit

Permalink
Fix release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Jan 22, 2021
1 parent 5f944e1 commit a526d9e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ curseforge {
}
}

def getBranch() {
def ENV = System.getenv()
if (ENV.GITHUB_REF) {
def branch = ENV.GITHUB_REF
return branch.substring(branch.lastIndexOf("/") + 1)
}

return "unknown"
}

import org.kohsuke.github.GHReleaseBuilder
import org.kohsuke.github.GitHub

Expand Down

0 comments on commit a526d9e

Please sign in to comment.