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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 1d84412798a Prevent CI workflows from running on forks (#636)
1d84412798a is described below

commit 1d84412798a2ae000bc7402b10bd7a0dcd02c259
Author: Tom Cunningham <tcunn...@redhat.com>
AuthorDate: Thu Sep 29 16:27:20 2022 -0400

    Prevent CI workflows from running on forks (#636)
---
 .github/workflows/automatic-sync-main.yml | 1 +
 .github/workflows/depsreview.yaml         | 1 +
 .github/workflows/pr-build.yml            | 1 +
 3 files changed, 3 insertions(+)

diff --git a/.github/workflows/automatic-sync-main.yml 
b/.github/workflows/automatic-sync-main.yml
index 1cfaa3e47ad..5d0be915278 100644
--- a/.github/workflows/automatic-sync-main.yml
+++ b/.github/workflows/automatic-sync-main.yml
@@ -24,6 +24,7 @@ on:
 jobs:
   build:
     name: Sync Camel Spring Boot Main Branch
+    if: github.repository == 'apache/camel-spring-boot'
     runs-on: ubuntu-latest
     steps:
       - name: Checkout Camel project
diff --git a/.github/workflows/depsreview.yaml 
b/.github/workflows/depsreview.yaml
index a25de591ba3..1fad255b9c7 100644
--- a/.github/workflows/depsreview.yaml
+++ b/.github/workflows/depsreview.yaml
@@ -6,6 +6,7 @@ permissions:
 
 jobs:
   dependency-review:
+    if: github.repository == 'apache/camel-spring-boot'
     runs-on: ubuntu-latest
     steps:
       - name: 'Checkout Repository'
diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml
index 95a01cf27ab..701f57e7687 100644
--- a/.github/workflows/pr-build.yml
+++ b/.github/workflows/pr-build.yml
@@ -29,6 +29,7 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'apache/camel-spring-boot'
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v3

Reply via email to