Skip to content

Commit e393fb8

Browse files
author
Alexander Strizhachuk
committed
version for github
1 parent 0750a8a commit e393fb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/sonar-scanner.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ jobs:
1515
if: github.event_name == 'push'
1616
run: sonar-scanner
1717
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
18+
-Dsonar.projectVersion=$(grep -oPm1 "(?<=<version>)[^<]+" GitlabServices/src/Configuration/Configuration.mdo)
1819
-Dsonar.host.url=https://sonar.openbsl.ru
1920
-Dsonar.branch.name=${GITHUB_REF#refs/heads/}
2021
- name: Run SonarQube on pull request
2122
if: github.event_name == 'pull_request'
2223
run: sonar-scanner
2324
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
2425
-Dsonar.host.url=https://sonar.openbsl.ru
26+
-Dsonar.projectVersion=$(grep -oPm1 "(?<=<version>)[^<]+" GitlabServices/src/Configuration/Configuration.mdo)
2527
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
2628
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
2729
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}

0 commit comments

Comments
 (0)