From 97485365b872223cb1ce8227e3dc7227573acfd3 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:00:17 -0600 Subject: [PATCH 1/2] should handle pushes to main --- .github/workflows/Formatter.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index 84e139e..96c7f5b 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -38,6 +38,15 @@ jobs: with: distribution: 'zulu' java-version: 17 + - name: Checkout repo (Push to main) + #Only runs if triggered manually + if: ${{github.event_name == 'push' }} + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 17 - name: Check with spotless id: spot-check run: ./gradlew spotlessCheck From 57e844108cad89ffff737f8d2e3705f52032122e Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:01:31 -0600 Subject: [PATCH 2/2] only setup java once --- .github/workflows/Formatter.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index 96c7f5b..b949567 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -33,11 +33,6 @@ jobs: #Only runs if triggered manually if: ${{github.event_name == 'workflow_dispatch' }} uses: actions/checkout@v4 - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: 'zulu' - java-version: 17 - name: Checkout repo (Push to main) #Only runs if triggered manually if: ${{github.event_name == 'push' }}