From 9844c0e6057c422ed7f72b0f2653b8061ff54d21 Mon Sep 17 00:00:00 2001 From: MR3Y Date: Wed, 15 Nov 2023 20:19:21 +0200 Subject: [PATCH] Apply style formatting changes only on main branch --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb8a5fa..ce8b03e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,6 +56,7 @@ jobs: run: ./gradlew spotlessApply --stacktrace - name: Commit and push changes (if any). + if: ${{ github.ref == 'refs/heads/main' }} uses: EndBug/add-and-commit@v9 with: author_name: GitHub Actions