Skip to content

Commit cd9b613

Browse files
committed
Checkout full history for spotless
The spotless action requires enough git history to correctly determine which files have been modified. This commit configures the checkout action to fetch the full history by setting `fetch-depth: 0`. If we remove usage of ratchetFrom we should be able to remove this.
1 parent 75ad3bc commit cd9b613

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-sample.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v4
39+
with:
40+
# https://github.com/diffplug/spotless/issues/710
41+
fetch-depth: 0
3942

4043
- name: Copy CI gradle.properties
4144
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

0 commit comments

Comments
 (0)