Skip to content

Commit d50b3cb

Browse files
committed
Prevent shallow history in GHA to mess with version inference
1 parent 28d4522 commit d50b3cb

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
@@ -70,6 +70,8 @@ jobs:
7070
timeout-minutes: 75
7171
steps:
7272
- uses: actions/checkout@v4
73+
with:
74+
fetch-depth: 0
7375
- name: Install build dependencies
7476
# Install dependencies for building packages on pre-release Pythons
7577
# jaraco/skeleton#161
@@ -182,6 +184,8 @@ jobs:
182184
timeout-minutes: 75
183185
steps:
184186
- uses: actions/checkout@v4
187+
with:
188+
fetch-depth: 0
185189
- name: Install Cygwin with Python
186190
uses: cygwin/cygwin-install-action@v4
187191
with:
@@ -243,6 +247,8 @@ jobs:
243247
timeout-minutes: 75
244248
steps:
245249
- uses: actions/checkout@v4
250+
with:
251+
fetch-depth: 0
246252
- name: Install OS-level dependencies
247253
run: |
248254
sudo apt-get update
@@ -268,6 +274,8 @@ jobs:
268274
timeout-minutes: 75
269275
steps:
270276
- uses: actions/checkout@v4
277+
with:
278+
fetch-depth: 0
271279
- name: Setup Python
272280
uses: actions/setup-python@v5
273281
with:

0 commit comments

Comments
 (0)