Skip to content

Commit d76a4a1

Browse files
committed
add fetch-depth 2 to checkout parent commit
1 parent 350e7ce commit d76a4a1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/dev.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ jobs:
2020
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2121
- uses: actions/checkout@v4
2222
with:
23-
# Disabling shallow clone is recommended for improving relevancy of reporting
24-
fetch-depth: 0
23+
fetch-depth: 2
2524
- uses: actions/setup-python@v5
2625
with:
2726
python-version: "3.11"
@@ -73,6 +72,8 @@ jobs:
7372
runs-on: ubuntu-latest
7473
steps:
7574
- uses: actions/checkout@v4
75+
with:
76+
fetch-depth: 2
7677
- name: Check if build needed
7778
id: check
7879
run: |
@@ -104,6 +105,8 @@ jobs:
104105
runs-on: ubuntu-latest
105106
steps:
106107
- uses: actions/checkout@v4
108+
with:
109+
fetch-depth: 2
107110
- name: Check if build needed
108111
id: check
109112
run: |
@@ -135,6 +138,8 @@ jobs:
135138
runs-on: ubuntu-latest
136139
steps:
137140
- uses: actions/checkout@v4
141+
with:
142+
fetch-depth: 2
138143
- name: Check if build needed
139144
id: check
140145
run: |

0 commit comments

Comments
 (0)