mirror of https://github.com/FabricMC/yarn.git
Fix release
This commit is contained in:
parent
7d53f6d141
commit
381ef2229b
|
@ -37,7 +37,7 @@ def yarnVersion = "${minecraft_version}+build.$build_number"
|
|||
version = yarnVersion
|
||||
|
||||
if (ENV.BRANCH_NAME) {
|
||||
def branch = ENV.BRANCH_NAME.substring(0, ENV.BRANCH_NAME.lastIndexOf('/'))
|
||||
def branch = ENV.BRANCH_NAME.substring(ENV.BRANCH_NAME.lastIndexOf('/') + 1)
|
||||
if (minecraft_version != branch) {
|
||||
throw new IllegalStateException("Branch name (${branch}) does not match the mc version (${minecraft_version})")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue