diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index c6b4879..d92a1ec 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -139,7 +139,7 @@ jobs: - name: Determine Next Tag run: | - latest_tag=$(git tag --sort=-creatordate --contains v | head -n 1); \ + latest_tag=$(git tag --sort=-creatordate | grep -E '^v[0-9]+$' | head -n 1); \ if [ -z "$latest_tag" ]; then \ version=1; \ else \ @@ -162,7 +162,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: v${{ env.VERSION }} - release_name: "Release ${{ env.VERSION }}" + release_name: "Release v${{ env.VERSION }}" body: | Automatic release of DeckTX for ${{ github.sha }}. draft: false