Skip to content

Commit

Permalink
ECWID-155668 Add "updateShippingOption" method to ecwid-java-api-clie…
Browse files Browse the repository at this point in the history
…nt - (feat) update printSanitizedVersion run, get rid of .md file
  • Loading branch information
RomanTimchenkoLightspeed committed Jan 22, 2025
1 parent 31cae48 commit 7edfec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7edfec5

Please sign in to comment.