Skip to content

Commit

Permalink
ci: sonarqube-scan does not run when merging from dependabot (#889)
Browse files Browse the repository at this point in the history
* ci: sonarqube-scan does not run when merging from dependabot
  • Loading branch information
FritzHoing committed Jun 28, 2024
1 parent 2ede439 commit 20c3de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: mvn clean verify sonar:sonar --batch-mode -Dsonar.projectKey=SHOGun -Dsonar.login="${{ secrets.SONARQUBE_TOKEN }}" -Preporting

- name: Refresh SonarQube
if: steps.semantic.outputs.new_release_published == 'true'
if: ${{ github.actor != 'dependabot[bot]' }} && steps.semantic.outputs.new_release_published == 'true'
run: mvn compile sonar:sonar --batch-mode -Dsonar.projectKey=SHOGun -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} -Dsonar.login="${{ secrets.SONARQUBE_TOKEN }}"

- name: Save cache
Expand Down

0 comments on commit 20c3de8

Please sign in to comment.