Skip to content

Commit b469fb6

Browse files
committed
ci: set fetch-depth to 0 so that tags are fetched
We need this for getting correct version from setuptools_scm.
1 parent 0d5694c commit b469fb6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Check out the repository
1212
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
1315

1416
- name: Set up Python 3.7
1517
uses: actions/setup-python@v2

.github/workflows/tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Check out the repository
1717
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
1820

1921
- name: Set up Python ${{ matrix.pyv }}
2022
uses: actions/setup-python@v2

0 commit comments

Comments
 (0)