diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 10c6d73bc..a09fae448 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -82,7 +82,6 @@ jobs: env: HANGAR_KEY: ${{ secrets.HANGAR_KEY }} MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} - COMMIT_MESSAGE: ${{ join(github.event.commits.*.message, '
* ') }} run: ./gradlew modrinth publishAllPublicationsToHangar --stacktrace - name: Build Succeeded diff --git a/build.gradle.kts b/build.gradle.kts index 3d09637eb..17cabca1c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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) }