From 87ebbbbacaabd1362ebac8c88c2732966b828746 Mon Sep 17 00:00:00 2001 From: cuttestkittensrule Date: Sun, 1 Feb 2026 14:38:00 -0800 Subject: [PATCH 1/3] Do a full clone of the repo This is because the CI is producing different results than an up-to-date local build, and is a workaround suggested by the spotless devs, and will probably work better because of that. It may reduce the speed of the CI builds, but there isn't much we can do about that until the spotless devs can fix it on their end. --- .github/workflows/gradle.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9e47a26d..cce1cbfd 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,6 +1,7 @@ name: Build Gradle project on: push +fetch-depth: 0 jobs: build-gradle-project: @@ -16,8 +17,6 @@ jobs: cache: gradle - name: Setup Gradle uses: gradle/gradle-build-action@v3 - - name: Fetch 'origin/main' - run: git fetch --depth=1 origin main - name: Run build with Gradle Wrapper run: ./gradlew --info build -PgearHeads.testJvmArg='-XX:ErrorFile=${{ github.workspace }}/hs_err_pid%p.log' - name: Archive test artifacts From 7ff154c1cb8e9a67de4a8bcaf3c0e90fe3a086ff Mon Sep 17 00:00:00 2001 From: cuttestkittensrule Date: Sun, 1 Feb 2026 14:48:49 -0800 Subject: [PATCH 2/3] Update the setup gradle action --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index cce1cbfd..96825964 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -16,7 +16,7 @@ jobs: distribution: 'temurin' cache: gradle - name: Setup Gradle - uses: gradle/gradle-build-action@v3 + uses: gradle/actions/setup-gradle@v5 - name: Run build with Gradle Wrapper run: ./gradlew --info build -PgearHeads.testJvmArg='-XX:ErrorFile=${{ github.workspace }}/hs_err_pid%p.log' - name: Archive test artifacts From e121061e055491f26907237401972b3848f1c619 Mon Sep 17 00:00:00 2001 From: cuttestkittensrule Date: Sun, 8 Feb 2026 20:15:12 -0800 Subject: [PATCH 3/3] Actually specify the fetch depth in the right place --- .github/workflows/gradle.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 96825964..9bca9e85 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,7 +1,6 @@ name: Build Gradle project on: push -fetch-depth: 0 jobs: build-gradle-project: @@ -9,6 +8,8 @@ jobs: steps: - name: Checkout project sources uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up JDK 17 uses: actions/setup-java@v4 with: