We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea04da8 commit 2b8093bCopy full SHA for 2b8093b
1 file changed
.github/workflows/java-format-check.yml
@@ -21,6 +21,8 @@ jobs:
21
steps:
22
- name: Checkout repository
23
uses: actions/checkout@v4
24
+ with:
25
+ fetch-depth: 0
26
27
- name: Validate Gradle Wrapper
28
uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0
@@ -35,4 +37,9 @@ jobs:
35
37
run: chmod +x gradlew
36
38
39
- name: Run Spotless Check
- run: ./gradlew spotlessCheck --no-daemon
40
+ run: |
41
+ if [ -n "${{github.base_ref}}" ]; then
42
+ ./gradlew spotlessCheck --no-daemon -PdiffBase=origin/${{github.base_ref}}
43
+ else
44
+ ./gradlew spotlessCheck --no-daemon
45
+ fi
0 commit comments