1
0
mirror of https://github.com/vbondarevsky/Connector.git synced 2024-11-21 17:36:49 +02:00

Fix action

This commit is contained in:
Vladimir Bondarevskiy 2021-11-15 03:15:39 +03:00
parent d1dc10567e
commit 2366919974

View File

@ -20,12 +20,15 @@ jobs:
shell: bash
run: echo "##[set-output name=version;]` cat ./src/ru/CommonModules/КоннекторHTTP/Ext/Module.bsl | grep -oP '(?<=Версия:.)[\d|.]*'`"
id: extract_version
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v3
- name: Run SonarQube on push
if: github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.branch.name=${GITHUB_REF#refs/heads/}
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
@ -36,6 +39,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
@ -55,12 +59,15 @@ jobs:
shell: bash
run: echo "##[set-output name=version;]` cat ./src/en/CommonModules/HTTPConnector/Ext/Module.bsl | grep -oP '(?<=Version:.)[\d|.]*'`"
id: extract_version
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v3
- name: Run SonarQube on push
if: github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.branch.name=${GITHUB_REF#refs/heads/}
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
@ -72,6 +79,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}