Skip to content

Commit c2bde01

Browse files
Another attempt
1 parent af0095f commit c2bde01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pull-request.yml

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

2626
- name: Build, run tests and upload dev snapshot to Maven Central with Gradle
2727
run: |
28-
./gradlew devSnapshot printDevSnapshotReleaseNote && ./gradlew devSanitizedVersion printSanitizedVersion
28+
./gradlew devSnapshot printDevSnapshotReleaseNote devSanitizedVersion printSanitizedVersion
2929
env:
3030
STORE_ID: ${{ secrets.STORE_ID }}
3131
API_TOKEN: ${{ secrets.API_TOKEN }}
@@ -35,7 +35,7 @@ jobs:
3535
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3636
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3737
GITHUB_HEAD_REF: ${{ github.head_ref }}
38-
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.ref }}
38+
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
3939

4040
- name: Read sanitized version
4141
id: read_sanitized_version

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ nexusPublishing {
217217
// <major>.<minor>.<patch>-dev.#+<branchname>.<hash> (local branch)
218218
// <major>.<minor>.<patch>-dev.#+<hash> (github pull request)
219219
// to:
220-
// <major>.<minor>.<patch>-dev+<branchname>-SNAPSHOT
220+
// <major>.<minor>.<patch>-dev+<hash>-SNAPSHOT
221221
fun Project.sanitizeVersion(): String {
222222
val version = version.toString()
223223
return if (project.isSnapshotVersion()) {

0 commit comments

Comments
 (0)