diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c2db304ef..2401d5221 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,7 +25,7 @@ jobs: - name: Build, run tests and upload dev snapshot to Maven Central with Gradle run: | - ./gradlew devSnapshot printDevSnapshotReleaseNote && ./gradlew devSanitizedVersion printSanitizedVersion + ./gradlew devSnapshot printDevSnapshotReleaseNote devSanitizedVersion printSanitizedVersion env: STORE_ID: ${{ secrets.STORE_ID }} API_TOKEN: ${{ secrets.API_TOKEN }} @@ -35,7 +35,7 @@ jobs: OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} GITHUB_HEAD_REF: ${{ github.head_ref }} - GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.ref }} + GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }} - name: Read sanitized version id: read_sanitized_version diff --git a/build.gradle.kts b/build.gradle.kts index b6f54ba80..2262ed929 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -217,7 +217,7 @@ nexusPublishing { // ..-dev.#+. (local branch) // ..-dev.#+ (github pull request) // to: -// ..-dev+-SNAPSHOT +// ..-dev+-SNAPSHOT fun Project.sanitizeVersion(): String { val version = version.toString() return if (project.isSnapshotVersion()) {