mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2025-01-19 20:51:22 +01:00
Fix publishing
This commit is contained in:
parent
73abfef6b0
commit
0e7f7c2f7c
@ -78,7 +78,8 @@ Provider<String> branchName() {
|
||||
def branch = branchName().get()
|
||||
def baseVersion = project.maven_version
|
||||
def isRelease = !baseVersion.contains('-')
|
||||
if (!isRelease) { // Only publish releases from the main branch
|
||||
def isMainBranch = branch == "main"
|
||||
if (!isRelease || isMainBranch) { // Only publish releases from the main branch
|
||||
def suffixedVersion = isRelease ? baseVersion : baseVersion + "+" + System.getenv("GITHUB_RUN_NUMBER")
|
||||
def commitHash = latestCommitHash().get()
|
||||
def changelogContent = "[${commitHash}](https://github.com/ViaVersion/ViaAprilFools/commit/${commitHash}) ${latestCommitMessage().get()}"
|
||||
|
Loading…
Reference in New Issue
Block a user