diff --git a/.github/workflows/release_drafter.yml b/.github/workflows/release_drafter.yml index 5ca57e222..c71f301c8 100644 --- a/.github/workflows/release_drafter.yml +++ b/.github/workflows/release_drafter.yml @@ -31,7 +31,7 @@ jobs: fetch-depth: 1 - name: Create draft release (not ready) - uses: aaronsteers/semantic-pr-release-drafter@v2.1.0 + uses: aaronsteers/semantic-pr-release-drafter@v2.2.0 id: not-ready-draft env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -45,11 +45,13 @@ jobs: run: UV_DYNAMIC_VERSIONING_BYPASS="${VERSION#v}" uv build - name: Attach assets and finalize draft - uses: aaronsteers/semantic-pr-release-drafter@v2.1.0 + uses: aaronsteers/semantic-pr-release-drafter@v2.2.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - version: ${{ steps.not-ready-draft.outputs.tag-name }} + # Finalize the exact draft prepared above via a strongly consistent + # point-read; version/tag/prerelease/SHA are reused from that release. + prepared-release-id: ${{ steps.not-ready-draft.outputs.id }} attach-files: | dist/*.whl dist/*.tar.gz