Skip to content

Commit 9a7b4cc

Browse files
committed
fetch entire repo to have tags for determining package version
By default the actions/checkout@v2 fetches only the last commit without any other meta-data including tags. Thus when setuptools_scm attempts to determine the version from git, it sees no tags, and cannot determine the version or the distance from the last tag (for dev builds).
1 parent 6aca675 commit 9a7b4cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
1618
- name: Set up Python
1719
uses: actions/setup-python@v2
1820
with:

0 commit comments

Comments
 (0)