Skip to content

Commit 7521056

Browse files
authored
Fix spotless CI checks (GregTechCEu#3176)
1 parent 0db3c90 commit 7521056

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/auto-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
contents: write
2424
steps:
2525
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0 # do a full checkout instead of a shallow clone of HEAD so spotless's ratchetFrom works
2628
- name: Setup Build
2729
uses: ./.github/actions/build_setup
2830
- name: Get Mod Version
@@ -31,7 +33,6 @@ jobs:
3133
- name: Version Suffix
3234
id: suffix
3335
run: echo "VERSION_SUFFIX=$(echo "${{ github.sha }}" | cut -c 1-7)" >> $GITHUB_ENV
34-
- run: git fetch origin 1.20.1
3536
- name: Build
3637
run: ./gradlew build
3738
- name: Publish to Maven

.github/workflows/format-java.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout Repository
2323
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0 # do a full checkout instead of a shallow clone of HEAD so spotless's ratchetFrom works
2426
- name: Check Path Filter
2527
uses: dorny/paths-filter@v3
2628
id: filter
@@ -29,8 +31,6 @@ jobs:
2931
code:
3032
- 'src/main/java/**'
3133
- 'src/test/**'
32-
- run: git fetch origin 1.20.1
33-
if: steps.filter.outputs.code == 'true'
3434
- name: Setup Build
3535
if: steps.filter.outputs.code == 'true'
3636
uses: ./.github/actions/build_setup

0 commit comments

Comments
 (0)