Skip to content

Commit

Permalink
BAH-3807 | Fix. Variable name for project version
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed Aug 26, 2024
1 parent 6948060 commit b0516c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit b0516c8

Please sign in to comment.