File tree 1 file changed +2
-0
lines changed 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,15 @@ jobs:
15
15
if : github.event_name == 'push'
16
16
run : sonar-scanner
17
17
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
18
+ -Dsonar.projectVersion=$(grep -oPm1 "(?<=<version>)[^<]+" GitlabServices/src/Configuration/Configuration.mdo)
18
19
-Dsonar.host.url=https://sonar.openbsl.ru
19
20
-Dsonar.branch.name=${GITHUB_REF#refs/heads/}
20
21
- name : Run SonarQube on pull request
21
22
if : github.event_name == 'pull_request'
22
23
run : sonar-scanner
23
24
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
24
25
-Dsonar.host.url=https://sonar.openbsl.ru
26
+ -Dsonar.projectVersion=$(grep -oPm1 "(?<=<version>)[^<]+" GitlabServices/src/Configuration/Configuration.mdo)
25
27
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
26
28
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
27
29
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
You can’t perform that action at this time.
0 commit comments