diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b25c204..7e73f33 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,7 +21,7 @@ jobs: id: get_version run: | # Get the latest tag, filter to versions with "v" prefix, sort them by version, and take the latest - git describe --tags --match "v[0-9]*" --abbrev=0 2>/dev/null + git describe --tags --match "v[0-9]*" --abbrev=0 VERSION=$(git describe --tags --match "v[0-9]*" --abbrev=0 2>/dev/null || echo "v0.0.0") echo "Current version: $VERSION" echo "version=$VERSION" >> $GITHUB_ENV