Skip to content

Commit 8bc115a

Browse files
committed
Handle missing tags gracefully in CI workflow by providing a default value
1 parent 4a2cc5c commit 8bc115a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Get Current Tag
3434
id: current_tag
3535
run: |
36-
current_tag=$(git describe --tags --abbrev=0 HEAD^)
36+
current_tag=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "v0.0.0")
3737
echo "current_tag=$current_tag" >> $GITHUB_ENV
3838
echo "::set-output name=current_tag::$current_tag"
3939
env:

0 commit comments

Comments
 (0)