Skip to content

Commit

Permalink
Version 1.3.16 and fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed Feb 9, 2021
1 parent 2994715 commit d9b9892
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9b9892

Please sign in to comment.