Skip to content

Commit 80ea92e

Browse files
committed
Add fetch-depth: 0 to check-format checkout for spotless ratchet
The spotless maven plugin uses git ratchet mode to compare against origin/master. With checkout@v6's default shallow clone, origin/master is not available, causing the format check to fail. Adding fetch-depth: 0 to the check-format job ensures the full git history is cloned including origin/master reference.
1 parent f334446 commit 80ea92e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
java-version: '17'
2727
- name: Checkout repository
2828
uses: actions/checkout@v6
29+
with:
30+
fetch-depth: 0
2931
- name: Build project
3032
run: |
3133
gcc --version

0 commit comments

Comments
 (0)