diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9a42b64..46acec6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,8 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Pull Tags + run: git fetch --all --tags - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/build.gradle b/build.gradle index 91c5e45..e628bcd 100644 --- a/build.gradle +++ b/build.gradle @@ -88,7 +88,7 @@ task generateChangelog { def lastTag = getLastVersion() def currentTag = project.mod_version - def commits = "git log --max-count=100 --pretty=format:%s $lastTag..$currentTag".execute() + def commits = "git log --max-count=100 --pretty=format:\"%B\" $lastTag..$currentTag".execute() println "Last version: $lastTag" println "Current version: $currentTag" @@ -104,10 +104,11 @@ task generateChangelog { println "Adding changelog line:" println " $processedLine" - if (changes.length() == 0) { + if (changes.length() == 1) { changes << processedLine } else { - changes << "\n$processedLine" + if(processedLine.trim() != "") + changes << "\n - $processedLine" } } commits.err.eachLine { line -> println line } diff --git a/gradle.properties b/gradle.properties index 2545cee..f36c1d9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx2G minecraft_version=1.16.5 fabric_loader_version=0.11.1 # Mod Properties -mod_version=1.3.15 +mod_version=1.3.16 maven_group=com.oroarmor archives_base_name=netherite-plus-mod project_name=Netherite Plus Mod