Skip to content

Commit 1ec108b

Browse files
committed
run on pr on non-fork
1 parent b30fd46 commit 1ec108b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
name: Analyze Code
128128
runs-on: ubuntu-latest
129129
needs: coverage
130-
if: github.event_name == 'push'
130+
if: ${{ !(github.event.workflow_run.head_repository.fork) }}
131131
steps:
132132
- name: Checkout
133133
uses: actions/checkout@v3
@@ -156,4 +156,4 @@ jobs:
156156
env:
157157
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
158158
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
159-
run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
159+
run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar

0 commit comments

Comments
 (0)