Skip to content

Commit 7edfec5

Browse files
ECWID-155668 Add "updateShippingOption" method to ecwid-java-api-client - (feat) update printSanitizedVersion run, get rid of .md file
1 parent 31cae48 commit 7edfec5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/pull-request.yml

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

2626
- name: Build, run tests and upload dev snapshot to Maven Central with Gradle
2727
run: |
28-
./gradlew devSnapshot printDevSnapshotReleaseNote printSanitizedVersion
29-
cat sanitized_version.md >> $GITHUB_STEP_SUMMARY
28+
./gradlew devSnapshot printDevSnapshotReleaseNote
29+
./gradlew --quiet printSanitizedVersion >> $GITHUB_STEP_SUMMARY
3030
env:
3131
STORE_ID: ${{ secrets.STORE_ID }}
3232
API_TOKEN: ${{ secrets.API_TOKEN }}

build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,13 @@ fun printDevSnapshotReleaseNote(groupId: String, artifactId: String, sanitizedVe
280280
println()
281281
}
282282

283-
fun printSanitizedVersion(sanitizedVersion: String) {
284-
val markdownMessage = """
283+
fun printSanitizedVersion(sanitizedVersion: String): String {
284+
return """
285285
|## Sanitized Version
286286
|
287287
|**Version:** $sanitizedVersion
288288
|
289289
""".trimMargin()
290-
File("sanitized_version.md").writeText(markdownMessage)
291290
}
292291

293292
class SettingsProvider {

0 commit comments

Comments
 (0)