Skip to content

Commit 359eb5f

Browse files
authored
Allow PR checklist to run and skip Sonar on PRs from forks (#110)
1 parent b8bce3f commit 359eb5f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/android.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ jobs:
8585
- uses: GetStream/android-ci-actions/actions/setup-ruby@main
8686

8787
- name: Sonar
88+
if: github.event.pull_request.head.repo.full_name == github.repository
8889
run: ./gradlew sonar
8990
env:
9091
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
92+
93+
- name: Sonar skipped if PR from fork
94+
if: github.event.pull_request.head.repo.full_name != github.repository
95+
run: echo "⚠️ Sonar skipped because the PR comes from a fork."

.github/workflows/pr-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: PR checklist
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [ opened, edited, synchronize, labeled, unlabeled, reopened ]
66

77
permissions:

0 commit comments

Comments
 (0)