Skip to content

Commit

Permalink
[ci-skip] chore: Simplify changelog message
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Apr 21, 2024
1 parent d308632 commit fa4ca8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
env:
HANGAR_KEY: ${{ secrets.HANGAR_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
COMMIT_MESSAGE: ${{ join(github.event.commits.*.message, '<br>* ') }}
run: ./gradlew modrinth publishAllPublicationsToHangar --stacktrace

- name: Build Succeeded
Expand Down
6 changes: 1 addition & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ rootProject.version = if (buildNumber != null) "2.1-$buildNumber" else "2.1"
val isSnapshot = true

val content: String = if (isSnapshot) {
if (System.getenv("COMMIT_MESSAGE") != null) {
System.getenv("COMMIT_MESSAGE")
} else {
formatLog(latestCommitHash(), latestCommitMessage(), rootProject.name)
}
formatLog(latestCommitHash(), latestCommitMessage(), rootProject.name)
} else {
rootProject.file("CHANGELOG.md").readText(Charsets.UTF_8)
}
Expand Down

0 comments on commit fa4ca8d

Please sign in to comment.