Skip to content

Commit

Permalink
fix sonar workflow: multiline command with backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-northlander committed Nov 6, 2024
1 parent 278787d commit 59f9b99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Analyze with sonarqube (PR)
if: github.event.workflow_run.event == 'pull_request'
run: >
./gradlew --info sonar
-Dsonar.scm.provider=git
-Dsonar.pullrequest.key=${{ env.PR_NUMBER }}
-Dsonar.pullrequest.branch=${{ env.PR_HEAD_REF }}
run: |
./gradlew --info sonar \
-Dsonar.scm.provider=git \
-Dsonar.pullrequest.key=${{ env.PR_NUMBER }} \
-Dsonar.pullrequest.branch=${{ env.PR_HEAD_REF }} \
-Dsonar.pullrequest.base=${{ env.PR_BASE_REF }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 59f9b99

Please sign in to comment.