From 1759ff295a45cc3147f19fdfdf54df460b1123fc Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 14 Oct 2025 19:30:28 +0200 Subject: [PATCH] ci: check out exact tag during tagged commit builds --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b56642e6b..b76bd66ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,6 +92,14 @@ jobs: echo "Found tag: ${tag}" echo "tagged=$tag" >> "$GITHUB_OUTPUT" + - name: Check out exact tag + if: ${{ steps.detect_tag.outputs.tagged }} + uses: actions/checkout@v4 + with: + ref: ${{ steps.detect_tag.outputs.tagged }} + fetch-depth: 0 + fetch-tags: true + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: