MINIFICPP-2878 PRs from apache should not double run CI (#2248)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fc2399c..a812f76 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,7 +6,11 @@
   schedule:
     - cron: '0 1 * * 1'
 concurrency:
-  group: ${{ github.workflow }}-${{ github.event.pull_request.head.repo.full_name || github.repository }}-${{ github.head_ref || github.ref_name }}
+  group: >-
+    ${{ github.workflow }}-
+    ${{ github.event.pull_request.head.repo.full_name || github.repository }}-
+    ${{ github.head_ref || github.ref_name }}-
+    ${{ github.repository == 'apache/nifi-minifi-cpp' && github.event_name == 'push' && github.ref != 'refs/heads/main' && github.run_id || '' }}
   cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
 env:
   CCACHE_DIR: ${{ GITHUB.WORKSPACE }}/.ccache
@@ -19,6 +23,10 @@
 jobs:
   macos_xcode:
     name: "macOS 26 aarch64"
+    if: >-
+      github.event_name != 'push' || 
+      github.repository != 'apache/nifi-minifi-cpp' || 
+      github.ref == 'refs/heads/main'
     runs-on: macos-26
     timeout-minutes: 240
     env:
@@ -130,6 +138,10 @@
           path: build/bin
   windows_VS2022:
     name: "Windows Server 2025 x86_64"
+    if: >-
+      github.event_name != 'push' || 
+      github.repository != 'apache/nifi-minifi-cpp' || 
+      github.ref == 'refs/heads/main'
     runs-on: windows-2025
     timeout-minutes: 300
     env:
@@ -249,6 +261,10 @@
         run: sccache --show-stats
   ubuntu_22_04_clang_arm:
     name: "Ubuntu 22.04 clang aarch64"
+    if: >-
+      github.event_name != 'push' || 
+      github.repository != 'apache/nifi-minifi-cpp' || 
+      github.ref == 'refs/heads/main'
     runs-on: ubuntu-22.04-arm
     timeout-minutes: 240
     env:
@@ -419,6 +435,10 @@
           path: build/bin
   rocky:
     name: "Rocky (docker) x86_64"
+    if: >-
+      github.event_name != 'push' || 
+      github.repository != 'apache/nifi-minifi-cpp' || 
+      github.ref == 'refs/heads/main'
     runs-on: ubuntu-24.04
     timeout-minutes: 180
     steps:
@@ -489,6 +509,10 @@
           path: /tmp/bin
   docker_build:
     name: "Docker build for integration tests (x86_64)"
+    if: >-
+      github.event_name != 'push' || 
+      github.repository != 'apache/nifi-minifi-cpp' || 
+      github.ref == 'refs/heads/main'
     runs-on: ubuntu-22.04
     timeout-minutes: 180
     steps:
@@ -637,6 +661,10 @@
           path: minifi_rust/minifi_rs_behave/output
   linters:
     name: "C++ lint + Shellcheck + Flake8 + Cargo fmt check + Clippy check"
+    if: >-
+      github.event_name != 'push' || 
+      github.repository != 'apache/nifi-minifi-cpp' || 
+      github.ref == 'refs/heads/main'
     runs-on: ubuntu-22.04-arm
     timeout-minutes: 15
     steps: