Skip to content

Commit 37b3c0b

Browse files
build: fix GitHub gradle actions
1 parent 546b3ee commit 37b3c0b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
2628
- name: Set up JDK 11
2729
uses: actions/setup-java@v3
2830
with:

build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,7 @@ checkstyle {
303303

304304
spotless {
305305
// optional: limit format enforcement to just the files changed by this feature branch
306-
// ratchetFrom 'master'
307-
308-
// Enable diff check
309-
spotlessDiffCheck('HEAD')
306+
ratchetFrom 'origin/master'
310307

311308
format 'misc', {
312309
// define the files to apply `misc` to

0 commit comments

Comments
 (0)