mirror of
https://github.com/vbondarevsky/Connector.git
synced 2024-11-28 08:58:44 +02:00
fix
This commit is contained in:
parent
7e966bf1ae
commit
db755cccae
13
.github/workflows/sonar-scanner.yml
vendored
13
.github/workflows/sonar-scanner.yml
vendored
@ -1,11 +1,12 @@
|
||||
name: sonar-scanner
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
SonarScanner:
|
||||
@ -16,12 +17,6 @@ jobs:
|
||||
uses: actions/checkout@v1
|
||||
- name: Setup SonarQube scanner
|
||||
uses: warchant/setup-sonar-scanner@v1
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
- name: Extract version
|
||||
shell: bash
|
||||
run: echo "##[set-output name=version;]` cat ./src/CommonModules/КоннекторHTTP/Ext/Module.bsl | grep -oP '(?<=Версия:.)[\d|.]*'`"
|
||||
id: extract_version
|
||||
- name: Run SonarQube on push
|
||||
if: github.event_name == 'push'
|
||||
env:
|
||||
@ -30,7 +25,6 @@ jobs:
|
||||
-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 }}
|
||||
- name: Run SonarQube on pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
env:
|
||||
@ -42,4 +36,3 @@ jobs:
|
||||
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
|
||||
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
|
||||
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
|
||||
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
|
||||
|
Loading…
Reference in New Issue
Block a user