Skip to content

Commit 4311cff

Browse files
Another attempt
1 parent af0095f commit 4311cff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ 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 \
29+
./gradlew devSanitizedVersion printSanitizedVersion
2930
env:
3031
STORE_ID: ${{ secrets.STORE_ID }}
3132
API_TOKEN: ${{ secrets.API_TOKEN }}
@@ -35,7 +36,7 @@ jobs:
3536
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3637
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3738
GITHUB_HEAD_REF: ${{ github.head_ref }}
38-
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.ref }}
39+
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
3940

4041
- name: Read sanitized version
4142
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)