From caa8f73f7eb52884c4328fe1e570a3a7014e5368 Mon Sep 17 00:00:00 2001 From: thcai Date: Mon, 17 Feb 2025 13:57:18 +0100 Subject: [PATCH] test github repo name condition --- .github/workflows/pull_request.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 52ab39d7..645a0af9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -57,5 +57,12 @@ jobs: name: ns4kafka path: ${{ github.workspace }}/build/libs/ns4kafka-${{ steps.build_jar.outputs.current_version }}.jar + - name: Sonar + if: github.event.pull_request.head.repo.full_name == github.repository + run: ./gradlew jacocoTestReport sonar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Docker run: ./gradlew dockerBuild \ No newline at end of file