Skip to content

Commit 3896ccf

Browse files
committed
Fix spotless GitHub Action failed
1 parent 3db3b1f commit 3896ccf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ jobs:
9999
runs-on: ubuntu-latest
100100
steps:
101101
- uses: actions/checkout@v4
102+
with:
103+
fetch-depth: 0
102104
- name: Set up JDK 17
103105
uses: actions/setup-java@v4
104106
with:

makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ build:
44
# Analyze code for errors, potential issues, and coding standard violations.
55
# Reports problems but does not modify the code.
66
lint:
7-
mvn -T12C spotless:check
7+
mvn -T12C -Pspotless spotless:check
88
# Automatically format the code to conform to a style guide.
99
# Modifies the code to ensure consistent formatting.
1010
format:
11-
mvn -T12C spotless:apply
11+
mvn -T12C -Pspotless spotless:apply

0 commit comments

Comments
 (0)