Skip to content

Commit 901dcda

Browse files
authored
chore: reduce workflow fetch depth (#2215)
1 parent fef5aae commit 901dcda

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/build-dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v3
3636
with:
37-
fetch-depth: 0
37+
fetch-depth: 1
3838
- uses: actions/setup-dotnet@v4
3939
with:
4040
dotnet-version: |
@@ -87,7 +87,7 @@ jobs:
8787
steps:
8888
- uses: actions/checkout@v3
8989
with:
90-
fetch-depth: 0
90+
fetch-depth: 1
9191
- uses: actions/setup-dotnet@v4
9292
with:
9393
dotnet-version: |
@@ -129,7 +129,7 @@ jobs:
129129
steps:
130130
- uses: actions/checkout@v3
131131
with:
132-
fetch-depth: 0
132+
fetch-depth: 0 # Full history required for versioning
133133
- uses: actions/setup-dotnet@v4
134134
with:
135135
dotnet-version: |

.github/workflows/pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v3
2626
with:
27-
fetch-depth: 0
27+
fetch-depth: 1
2828
- uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: |
@@ -81,7 +81,7 @@ jobs:
8181
steps:
8282
- uses: actions/checkout@v3
8383
with:
84-
fetch-depth: 0
84+
fetch-depth: 1
8585
- uses: actions/setup-dotnet@v4
8686
with:
8787
dotnet-version: |
@@ -134,7 +134,7 @@ jobs:
134134
steps:
135135
- uses: actions/checkout@v3
136136
with:
137-
fetch-depth: 0
137+
fetch-depth: 1
138138
- uses: actions/setup-dotnet@v4
139139
with:
140140
dotnet-version: |

0 commit comments

Comments
 (0)