Skip to content

Commit 1f90a47

Browse files
Try to simplify message
1 parent a180a6b commit 1f90a47

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/pull-request.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525

2626
- name: Build, run tests and upload dev snapshot to Maven Central with Gradle
2727
run: |
28-
./gradlew devSnapshot printDevSnapshotReleaseNote && ./gradlew printSanitizedVersion >> $GITHUB_STEP_SUMMARY
28+
./gradlew devSnapshot printDevSnapshotReleaseNote printSanitizedVersion
29+
cat sanitized-version.md >> $GITHUB_STEP_SUMMARY
2930
env:
3031
STORE_ID: ${{ secrets.STORE_ID }}
3132
API_TOKEN: ${{ secrets.API_TOKEN }}

build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ tasks.register(Tasks.PRINT_DEV_SNAPSHOT_RELEASE_NOTE_TASK_NAME) {
127127
dependsOn(tasks.getByName("devSnapshot"))
128128
}
129129

130-
131-
132130
tasks.register(Tasks.PRINT_SUMMARY_SANITIZED_TASK_NAME) {
133131
doLast {
134132
printSanitizedVersion(project.sanitizeVersion())
@@ -288,7 +286,7 @@ fun printSanitizedVersion(sanitizedVersion: String): String {
288286
|**Version:** $sanitizedVersion
289287
|
290288
""".trimMargin()
291-
println(markdownMessage)
289+
File("sanitized_version.md").writeText(markdownMessage)
292290
return markdownMessage
293291
}
294292

0 commit comments

Comments
 (0)