From fa4ca8dae78e730a4c828d31240f228a1d5d0b0f Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Sat, 20 Apr 2024 21:25:57 -0400 Subject: [PATCH] [ci-skip] chore: Simplify changelog message --- .github/workflows/snapshot.yml | 1 - build.gradle.kts | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) 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) }