This commit is contained in:
parent
52b285fccf
commit
58565c7523
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ jobs:
|
|||
pre-commit run --all-files
|
||||
- name: 'Prepare Versioned Build'
|
||||
run: |
|
||||
latest_git_tag="$(git describe --tags --abbrev=0)"
|
||||
latest_commit_message="$(git show -s --format=%s HEAD)"
|
||||
if [[ "$latest_commit_message" == *"(major)"* ]]; then
|
||||
export GS_RELEASE_TYPE="major"
|
||||
|
@ -34,6 +35,7 @@ jobs:
|
|||
else
|
||||
export GS_RELEASE_TYPE="patch"
|
||||
fi
|
||||
echo "Latest Git Tag: $latest_git_tag"
|
||||
echo "Latest Commit: $latest_commit_message ($GS_RELEASE_TYPE) (SNAPSHOT)"
|
||||
sbtn -Dsnapshot=true -Drelease="$GS_RELEASE_TYPE" semVerInfo
|
||||
- name: 'Unit Tests and Code Coverage'
|
||||
|
|
Loading…
Add table
Reference in a new issue