From 2f6ed677454d9e22dd358bfcd4e84fbef3389353 Mon Sep 17 00:00:00 2001 From: itsjohncs Date: Mon, 29 Jul 2024 19:23:38 -0700 Subject: [PATCH] Fetch the entire history in GH action. Looks like getting only the tags is not enough for `setuptools-scm` to generate the version tag. I believe `fetch-tags` is implied if `fetch-depth` is set to `0`. --- .github/workflows/publish-to-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 93c13ac..acba96a 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-tags: true + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 with: