Skip to content

Commit f52522e

Browse files
committed
fix: Always fetch the whole Git history, needed to build the current project in non-editable mode with an up-to-date version
1 parent 5bb2c1a commit f52522e

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
uses: actions/checkout@v4
6969
with:
7070
fetch-depth: 0
71+
fetch-tags: true
7172

7273
- name: Configure Git
7374
run: |
@@ -101,6 +102,7 @@ jobs:
101102
uses: actions/checkout@v4
102103
with:
103104
fetch-depth: 0
105+
fetch-tags: true
104106

105107
- name: Configure Git
106108
run: |

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
15-
- name: Fetch all tags
16-
run: git fetch --depth=1 --tags
15+
with:
16+
fetch-depth: 0
17+
fetch-tags: true
1718
- name: Setup Python
1819
uses: actions/setup-python@v5
1920
with:

project/.github/workflows/ci.yml.jinja

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28-
29-
- name: Fetch all tags
30-
run: git fetch --depth=1 --tags
28+
with:
29+
fetch-depth: 0
30+
fetch-tags: true
3131

3232
- name: Setup Python
3333
uses: actions/setup-python@v5
@@ -117,6 +117,9 @@ jobs:
117117
steps:
118118
- name: Checkout
119119
uses: actions/checkout@v4
120+
with:
121+
fetch-depth: 0
122+
fetch-tags: true
120123

121124
- name: Setup Python
122125
uses: actions/setup-python@v5

project/.github/workflows/release.yml.jinja

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14-
- name: Fetch all tags
15-
run: git fetch --depth=1 --tags
14+
with:
15+
fetch-depth: 0
16+
fetch-tags: true
1617
- name: Setup Python
1718
uses: actions/setup-python@v5
1819
with:

0 commit comments

Comments
 (0)