Skip to content

Commit

Permalink
ci(pr): check pull request branch (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancgalvis authored Dec 4, 2024
1 parent 13c9d67 commit 7704c07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7704c07

Please sign in to comment.