From 81a3f97534f50e7d96635cdc50f88bd86a50ddfd Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Fri, 2 Feb 2024 13:26:17 +0100 Subject: [PATCH] Only run sonar analysis on main repo --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59e26878b..f723238c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: - name: Build run: ./mvnw -Pcoverage clean verify - name: Analyse with SonarCloud - if: ${{ matrix.java == 17 && matrix.os == 'ubuntu-latest' && (github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')) }} + if: ${{ github.repository == 'focus-shift/jollyday' && matrix.java == 17 && matrix.os == 'ubuntu-latest' && (github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')) }} run: > ./mvnw -Pcoverage verify sonar:sonar