From 8d2859b186e61b33838c68e653ecc40e1a4b62ca Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Mon, 23 Jan 2023 21:29:12 -0800 Subject: [PATCH] Use bash Signed-off-by: Sayali Gaikawad --- .github/workflows/release-drafter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e3f52436b7..6e8fb0c948 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -18,6 +18,8 @@ jobs: java-version: 11 - name: Build with Gradle run: | + export VERSION=`cat gradle.properties | grep "systemProp.version" | tr -d " " | cut -d '=' -f2` + echo Building the version: $VERSION ./gradlew --no-daemon publishPublishMavenPublicationToLocalRepoRepository && tar -C build -cvf artifacts.tar.gz repository - name: Draft a release uses: softprops/action-gh-release@v1