diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9ab6d2c29..c6571b99a 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,8 +25,8 @@ jobs: - name: Build, run tests and upload dev snapshot to Maven Central with Gradle run: | - ./gradlew devSnapshot printDevSnapshotReleaseNote printSanitizedVersion - cat sanitized_version.md >> $GITHUB_STEP_SUMMARY + ./gradlew devSnapshot printDevSnapshotReleaseNote + ./gradlew --quiet printSanitizedVersion >> $GITHUB_STEP_SUMMARY env: STORE_ID: ${{ secrets.STORE_ID }} API_TOKEN: ${{ secrets.API_TOKEN }} diff --git a/build.gradle.kts b/build.gradle.kts index 8b53b2a42..b5ebf856d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -280,14 +280,13 @@ fun printDevSnapshotReleaseNote(groupId: String, artifactId: String, sanitizedVe println() } -fun printSanitizedVersion(sanitizedVersion: String) { - val markdownMessage = """ +fun printSanitizedVersion(sanitizedVersion: String): String { + return """ |## Sanitized Version | |**Version:** $sanitizedVersion | """.trimMargin() - File("sanitized_version.md").writeText(markdownMessage) } class SettingsProvider {