Skip to content

Commit b2ed1e6

Browse files
committed
Prevent shallow history in GHA to mess with version inference
1 parent a1658e0 commit b2ed1e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
timeout-minutes: 75
7272
steps:
7373
- uses: actions/checkout@v4
74+
with:
75+
fetch-depth: 0
7476
- name: Install build dependencies
7577
# Install dependencies for building packages on pre-release Pythons
7678
# jaraco/skeleton#161
@@ -183,6 +185,8 @@ jobs:
183185
timeout-minutes: 75
184186
steps:
185187
- uses: actions/checkout@v4
188+
with:
189+
fetch-depth: 0
186190
- name: Install Cygwin with Python
187191
uses: cygwin/cygwin-install-action@v4
188192
with:
@@ -244,6 +248,8 @@ jobs:
244248
timeout-minutes: 75
245249
steps:
246250
- uses: actions/checkout@v4
251+
with:
252+
fetch-depth: 0
247253
- name: Install OS-level dependencies
248254
run: |
249255
sudo apt-get update
@@ -269,6 +275,8 @@ jobs:
269275
timeout-minutes: 75
270276
steps:
271277
- uses: actions/checkout@v4
278+
with:
279+
fetch-depth: 0
272280
- name: Setup Python
273281
uses: actions/setup-python@v5
274282
with:

0 commit comments

Comments
 (0)