From 61270e7e82d0a590b084cf209312156866cff69f Mon Sep 17 00:00:00 2001 From: drisspg Date: Wed, 25 Mar 2026 15:07:25 -0700 Subject: [PATCH] Fix edge case when tag has no delta from previous --- .github/workflows/publish-fa4.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish-fa4.yml b/.github/workflows/publish-fa4.yml index f845284424..ef3aa4747b 100644 --- a/.github/workflows/publish-fa4.yml +++ b/.github/workflows/publish-fa4.yml @@ -59,9 +59,16 @@ jobs: python-version: '3.12' - name: Install build dependencies run: pip install build twine + - name: Extract version from tag + id: strip-prefix + run: | + TAG="${{ needs.prepare-release.outputs.release_tag }}" + echo "version=${TAG#fa4-v}" >> "$GITHUB_OUTPUT" - name: Build package run: python -m build working-directory: flash_attn/cute + env: + SETUPTOOLS_SCM_PRETEND_VERSION: ${{ steps.strip-prefix.outputs.version }} - name: Check package metadata run: twine check dist/* working-directory: flash_attn/cute