Skip to content

Commit

Permalink
fix job
Browse files Browse the repository at this point in the history
  • Loading branch information
alkoleft committed May 21, 2024
1 parent e039bff commit 289878a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/sq-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
# https://github.com/android-password-store/Android-Password-Store/pull/1247
ref: refs/pull/${{ github.event.pull_request.number }}/merge

# https://docs.sonarqube.org/latest/analysis/pull-request/
- name: Анализ в SonarQube (pull-request)
if: github.event_name == 'pull_request'
uses: alkoleft/sonar-quality-gate@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -24,5 +22,5 @@ jobs:
SONAR_URL: https://sonar.openbsl.ru
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_REPOSITORY: bia-technologies/yaxunit
CI_MERGE_REQUEST_IID: ${{ github.event.pull_request.number }}
CI_MERGE_REQUEST_IID: ${{ github.event.number }}
DEBUG: ${{ runner.debug }}

0 comments on commit 289878a

Please sign in to comment.