diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c2db304ef..176986e50 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -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()) {