Skip to content

Commit

Permalink
chore: set fallback on CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 authored Mar 6, 2024
1 parent f8c071f commit ea7ea69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
cache: 'maven'
- name: change version to SNAPSHOT
run: |
VER_TAG=$(git describe --tags --abbrev=0)
test -z "$VER_TAG" && VER_TAG="0.0.1"
VER_TAG=$(git describe --tags --abbrev=0) || VER_TAG="0.0.1"
mvn versions:set -DnewVersion=${VER_TAG}-SNAPSHOT
- name: Build with Maven
run: mvn package
Expand Down

0 comments on commit ea7ea69

Please sign in to comment.