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."