(patch) Account for repositories without tags.
Some checks failed
/ Build and Test Library Snapshot (pull_request) Failing after 43s
Some checks failed
/ Build and Test Library Snapshot (pull_request) Failing after 43s
This commit is contained in:
parent
87c9e6b94f
commit
7457894c59
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue