You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/11/17 17:22:34 UTC

[lucenenet] branch master updated: sonar.yml: Don't run on forks, only run on the main repository

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 71adb4df6 sonar.yml: Don't run on forks, only run on the main repository
71adb4df6 is described below

commit 71adb4df6dbb6ea5e5c781116c60e0cddacd3899
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Nov 18 00:14:13 2022 +0700

    sonar.yml: Don't run on forks, only run on the main repository
---
 .github/workflows/sonar.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index 9094b457b..711134db7 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -25,6 +25,7 @@ on:
     - cron: '36 12 * * *' # 12:36 PM UTC, daily (picked an odd start time to try to avoid competing for agents with other projects)
 jobs:
   build:
+    if: github.repository == 'apache/lucenenet' # Don't run on forks
     name: Build and analyze
     runs-on: windows-latest
     steps: