From 0e1f6e3f74d836cfe5d4d18f3c0051fb80684b44 Mon Sep 17 00:00:00 2001 From: jcgalvis Date: Wed, 4 Dec 2024 17:03:11 -0500 Subject: [PATCH] ci(pr): check pull request branch --- .github/workflows/gradle.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f08509cf..c9ccafce 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -35,8 +35,6 @@ jobs: token: ${{ steps.generate_token.outputs.token }} - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 if: github.ref != 'refs/heads/master' - - name: Run sonar - run: echo ${{ github.event.pull_request.head.ref }} - name: Verify Conventional Commits uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 @@ -70,7 +68,7 @@ jobs: - name: Push codeCoverage to Codecov run: bash <(curl -s https://codecov.io/bash) - name: Run sonar - if: github.event.pull_request.head.repo.fork == false && github.event.pull_request.head.ref != 'dependabot/**' + if: github.event.pull_request.head.repo.fork == false && !startsWith(github.event.pull_request.head.ref, 'dependabot/') run: ./gradlew sonar --stacktrace -Dsonar.token=${{ secrets.SONAR_TOKEN }} env: