(patch) Account for repositories without tags.
Some checks failed
/ Build and Test Library Snapshot (pull_request) Failing after 43s

This commit is contained in:
Pat Garrity 2024-03-23 22:57:48 -05:00
parent 87c9e6b94f
commit 7457894c59
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ jobs:
pre-commit run --all-files
- name: 'Prepare Versioned Build'
run: |
latest_git_tag="$(git describe --tags --abbrev=0)"
latest_git_tag="$(git describe --tags --abbrev=0 || 'No Tags')"
latest_commit_message="$(git show -s --format=%s HEAD)"
if [[ "$latest_commit_message" == *"(major)"* ]]; then
export GS_RELEASE_TYPE="major"

View file

@ -27,7 +27,7 @@ jobs:
pre-commit run --all-files
- name: 'Prepare Versioned Build'
run: |
latest_git_tag="$(git describe --tags --abbrev=0)"
latest_git_tag="$(git describe --tags --abbrev=0 || 'No Tags')"
latest_commit_message="$(git show -s --format=%s HEAD)"
if [[ "$latest_commit_message" == *"(major)"* ]]; then
export GS_RELEASE_TYPE="major"