diff --git a/.github/workflows/validate-python-release.yaml b/.github/workflows/validate-python-release.yaml index b4dee61..2aa9d08 100644 --- a/.github/workflows/validate-python-release.yaml +++ b/.github/workflows/validate-python-release.yaml @@ -36,6 +36,7 @@ jobs: - name: 📥 Check out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: + fetch-depth: 0 persist-credentials: false ref: ${{ github.sha }} - name: 🐍 Install uv and Python diff --git a/changelog.d/+build-fetch-depth.bugfix.md b/changelog.d/+build-fetch-depth.bugfix.md new file mode 100644 index 0000000..1ec91a0 --- /dev/null +++ b/changelog.d/+build-fetch-depth.bugfix.md @@ -0,0 +1,2 @@ +Check out the full history in the `validate-python-release` build job again, so version tools such as hatch-vcs and +setuptools-scm see the release tag. 6.0.0 built `0.1.dev1+g` instead of the tagged version.