Skip to content

Commit 879d4b8

Browse files
committed
Unshallow only if necessary
Signed-off-by: Alfredo Gutierrez <[email protected]>
1 parent da18b5f commit 879d4b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/spotless-check.yml

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ jobs:
3333
with:
3434
fetch-depth: 0
3535

36+
- name: Expand Shallow Clone for Spotless
37+
run: |
38+
if [ -f .git/shallow ]; then
39+
git fetch --unshallow --no-recurse-submodules
40+
else
41+
echo "Repository is not shallow, no need to unshallow."
42+
fi
43+
3644
- name: Set up JDK 21
3745
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
3846
with:

0 commit comments

Comments
 (0)