From 3573eacff3951ae5b07d6afc455aef5867e09945 Mon Sep 17 00:00:00 2001 From: Vladimir Bondarevskiy Date: Sat, 9 Oct 2021 22:59:13 +0300 Subject: [PATCH] Fix actions --- .github/workflows/sonar-scanner_ru.yml | 46 -------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/sonar-scanner_ru.yml diff --git a/.github/workflows/sonar-scanner_ru.yml b/.github/workflows/sonar-scanner_ru.yml deleted file mode 100644 index d897bc3..0000000 --- a/.github/workflows/sonar-scanner_ru.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: sonar-scanner_ru - -on: - push: - branches: - - master - pull_request: - types: [opened, synchronize, reopened] - -jobs: - SonarScanner: - if: github.repository == 'vbondarevsky/Connector' - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - with: - fetch-depth: 0 - - name: Setup SonarQube scanner - uses: warchant/setup-sonar-scanner@v3 - - name: Extract version - shell: bash - run: echo "##[set-output name=version;]` cat ./src/ru/CommonModules/КоннекторHTTP/Ext/Module.bsl | grep -oP '(?<=Версия:.)[\d|.]*'`" - id: extract_version - - name: Run SonarQube on push - if: github.event_name == 'push' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_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 }} - -Dproject.settings=sonar-project.properties_ru - - name: Run SonarQube on pull request - if: github.event_name == 'pull_request' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_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 }} - -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} - -Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} - -Dproject.settings=sonar-project.properties_ru