Skip to content

Commit 9214e63

Browse files
authored
ci: use fetch-depth: 0 instead of fetching manually (#7297)
1 parent 2f406bb commit 9214e63

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ jobs:
128128

129129
steps:
130130
- uses: actions/checkout@v2
131-
# For setuptools-scm.
132-
- run: git fetch --prune --unshallow
131+
with:
132+
fetch-depth: 0
133133
- name: Set up Python ${{ matrix.python }}
134134
uses: actions/setup-python@v2
135135
if: matrix.python != '3.9-dev'
@@ -177,8 +177,8 @@ jobs:
177177

178178
steps:
179179
- uses: actions/checkout@v2
180-
# For setuptools-scm.
181-
- run: git fetch --prune --unshallow
180+
with:
181+
fetch-depth: 0
182182
- name: Set up Python
183183
uses: actions/setup-python@v2
184184
with:

.github/workflows/release-on-comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
# For setuptools-scm.
19-
- run: git fetch --prune --unshallow
18+
with:
19+
fetch-depth: 0
2020

2121
- name: Set up Python
2222
uses: actions/setup-python@v2

0 commit comments

Comments
 (0)