Skip to content

Commit f6f01b7

Browse files
Update publishing of jVector with OS version parameter
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent 03a8359 commit f6f01b7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release-drafter.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ jobs:
3939
exclude-workflow-initiator-as-approver: true
4040
- name: Build with Gradle
4141
run: |
42-
./gradlew --no-daemon -Dbuild.snapshot=false publishNebulaPublicationToLocalRepoRepository
43-
./gradlew --no-daemon -Dbuild.snapshot=false publishPluginZipPublicationToLocalRepoRepository
42+
OS_VERSION=`./gradlew -Dbuild.snapshot=false properties | grep -iE "^version:" | cut -d: -f2 | cut -d. -f1-3 | tr -d ' '`
43+
echo "OS_VERSION $OS_VERSION"
44+
./gradlew --no-daemon -Dbuild.snapshot=false -Dopensearch.version=$OS_VERSION publishNebulaPublicationToLocalRepoRepository
45+
./gradlew --no-daemon -Dbuild.snapshot=false -Dopensearch.version=$OS_VERSION publishPluginZipPublicationToLocalRepoRepository
4446
tar -C build -czvf artifacts.tar.gz repository
4547
- name: Draft a release
4648
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)