Skip to content

Commit 7222ceb

Browse files
committed
chore: fix sonar workflow for PRs
1 parent a216dee commit 7222ceb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/sonar.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@ jobs:
3737
full_name: ${{ github.event.repository.full_name }}
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
- name: Checkout head branch on push
40+
- name: Checkout head branch
4141
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
42-
if: github.event.workflow_run.event == 'push' && github.event.workflow_run.head_repository.full_name == github.event.repository.full_name
4342
with:
4443
repository: ${{ github.event.workflow_run.head_repository.full_name }}
4544
ref: ${{ github.event.workflow_run.head_branch }}
4645
fetch-depth: 0
4746
persist-credentials: false
48-
- name: Checkout head branch on pull_request
47+
- name: Checkout head branch of pull_request
4948
if: github.event.workflow_run.event == 'pull_request'
5049
env:
5150
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}

0 commit comments

Comments
 (0)