Skip to content

Commit 4371b76

Browse files
committed
chore: update publish SDK workflow to pass version input for snapshot and release tasks
1 parent 20496bb commit 4371b76

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/generate-publish-sdk.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
id: generate-publish-sdk-new
21
on:
32
workflow_dispatch:
43
inputs:
@@ -55,7 +54,7 @@ jobs:
5554
run: |
5655
version="${{ github.event.inputs.version }}"
5756
if [[ "${v// /}" == *"-SNAPSHOT" ]]; then
58-
gradle publishSnapshot
57+
gradle publishSnapshot -PVERSION="${version}"
5958
else
60-
gradle publishToSonatype closeAndReleaseSonatypeStagingRepository
59+
gradle publishToSonatype closeAndReleaseSonatypeStagingRepository -PVERSION="${version}"
6160
fi

0 commit comments

Comments
 (0)