From b0516c8cd11f50784895f7fe888f8cb6c001b042 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T <31698165+mohan-13@users.noreply.github.com> Date: Mon, 26 Aug 2024 03:08:41 +0000 Subject: [PATCH] BAH-3807 | Fix. Variable name for project version --- .github/workflows/build_publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_publish.yml b/.github/workflows/build_publish.yml index 925deb2..38245ca 100644 --- a/.github/workflows/build_publish.yml +++ b/.github/workflows/build_publish.yml @@ -19,7 +19,7 @@ jobs: - name: Build and deploy with Maven run: | PROJECT_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout) - if [[ "$VERSION" == *"-SNAPSHOT" ]]; then + if [[ "$PROJECT_VERSION" == *"-SNAPSHOT" ]]; then ./mvnw --no-transfer-progress clean -U deploy else echo "❌ The current push is for release. So skipping build."