diff --git a/.github/workflows/auto_release.yml b/.github/workflows/auto_release.yml index 77c94ac..29dbda0 100644 --- a/.github/workflows/auto_release.yml +++ b/.github/workflows/auto_release.yml @@ -24,7 +24,7 @@ jobs: - name: Get Previous Tag and Build Number id: build_number run: | - LATEST_TAG=$(git describe --tags --match "${{ matrix.folder }}-*" 2>/dev/null) + LATEST_TAG=$(git describe --tags --abbrev=0 --match "${{ matrix.folder }}-*" 2>/dev/null) echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV if [[ -n "$LATEST_TAG" ]]; then