Skip to content

Commit f7a43c1

Browse files
fix: FETCH DEPTH
1 parent 34b3023 commit f7a43c1

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# force LF for pyproject to make hashFiles in CI consistent (windows <3)
22
# (see https://github.com/actions/runner/issues/498)
3-
pyproject.toml text eol=lf export-subst
3+
pyproject.toml text eol=lf
4+
pyproject.toml export-subst

.github/workflows/create-release-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
with:
3434
token: ${{ steps.generate_token.outputs.token }}
3535
persist-credentials: false
36+
fetch-tags: true
3637

3738
- name: Set git name/email
3839
env:

.github/workflows/lint-test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v4
37+
with:
38+
fetch-tags: true
3739

3840
# Instead of setup-env, we call the cache-pdm action here directly.
3941
# This avoids having to install PDM, only to find out the cache is already up to date sometimes.
@@ -58,6 +60,8 @@ jobs:
5860
needs: lock-dependencies
5961
steps:
6062
- uses: actions/checkout@v4
63+
with:
64+
fetch-tags: true
6165

6266
- name: Set up environment
6367
uses: ./.github/actions/setup-env
@@ -79,7 +83,8 @@ jobs:
7983

8084
steps:
8185
- uses: actions/checkout@v4
82-
86+
with:
87+
fetch-tags: true
8388
- name: Set up environment
8489
id: setup-env
8590
uses: ./.github/actions/setup-env
@@ -125,7 +130,8 @@ jobs:
125130
needs: lock-dependencies
126131
steps:
127132
- uses: actions/checkout@v4
128-
133+
with:
134+
fetch-tags: true
129135
- name: Set up environment
130136
id: setup
131137
uses: ./.github/actions/setup-env
@@ -181,7 +187,8 @@ jobs:
181187

182188
steps:
183189
- uses: actions/checkout@v4
184-
190+
with:
191+
fetch-tags: true
185192
- name: Set up environment
186193
id: setup-env
187194
uses: ./.github/actions/setup-env

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
fetch-tags: true
2123

2224
- name: Set up environment
2325
id: setup
@@ -183,6 +185,7 @@ jobs:
183185
token: ${{ steps.generate_token.outputs.token }}
184186
persist-credentials: false
185187
ref: master # the PR action wants a proper base branch
188+
fetch-tags: true
186189

187190
- name: Set git name/email
188191
env:

0 commit comments

Comments
 (0)