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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 5a9e21ac1b4 Skip upstream-only push workflows when a fork syncs main 
(#76695)
5a9e21ac1b4 is described below

commit 5a9e21ac1b454c2f2e77d009710c640fa796fba9
Author: Justin Pakzad <[email protected]>
AuthorDate: Wed Nov 11 02:50:06 2026 -0500

    Skip upstream-only push workflows when a fork syncs main (#76695)
---
 .github/workflows/automatic-backport.yml           | 1 +
 .github/workflows/java-sdk-dependency-security.yml | 2 +-
 .github/workflows/milestone-tag-assistant.yml      | 1 +
 .github/workflows/notify-uv-lock-conflicts.yml     | 1 +
 .github/workflows/update-constraints-on-push.yml   | 5 +++--
 5 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/automatic-backport.yml 
b/.github/workflows/automatic-backport.yml
index 2ae729c70e6..6fbf89b0291 100644
--- a/.github/workflows/automatic-backport.yml
+++ b/.github/workflows/automatic-backport.yml
@@ -26,6 +26,7 @@ permissions:
 jobs:
   get-pr-info:
     name: "Get PR information"
+    if: github.repository == 'apache/airflow'
     runs-on: ubuntu-slim
     outputs:
       branches: ${{ steps.pr-info.outputs.branches }}
diff --git a/.github/workflows/java-sdk-dependency-security.yml 
b/.github/workflows/java-sdk-dependency-security.yml
index c4ad6ac8858..15ea08819cf 100644
--- a/.github/workflows/java-sdk-dependency-security.yml
+++ b/.github/workflows/java-sdk-dependency-security.yml
@@ -37,7 +37,7 @@ concurrency:
 jobs:
   dependency-submission:
     name: Submit resolved Gradle dependencies
-    if: github.event_name != 'schedule' || github.repository == 
'apache/airflow'
+    if: github.repository == 'apache/airflow'
     runs-on: ubuntu-latest
     permissions:
       contents: write
diff --git a/.github/workflows/milestone-tag-assistant.yml 
b/.github/workflows/milestone-tag-assistant.yml
index 2386baad4cf..055cc01af5f 100644
--- a/.github/workflows/milestone-tag-assistant.yml
+++ b/.github/workflows/milestone-tag-assistant.yml
@@ -36,6 +36,7 @@ permissions:
 jobs:
   get-pr-info:
     name: "Get PR information"
+    if: github.repository == 'apache/airflow'
     runs-on: ubuntu-slim
     outputs:
       should-run: ${{ steps.pr-info.outputs.should-run }}
diff --git a/.github/workflows/notify-uv-lock-conflicts.yml 
b/.github/workflows/notify-uv-lock-conflicts.yml
index cda9356576c..f40f8beead8 100644
--- a/.github/workflows/notify-uv-lock-conflicts.yml
+++ b/.github/workflows/notify-uv-lock-conflicts.yml
@@ -29,6 +29,7 @@ permissions:
 jobs:
   notify:
     name: "Notify open PRs that conflict on uv.lock"
+    if: github.repository == 'apache/airflow'
     runs-on: ["ubuntu-slim"]
     timeout-minutes: 10
     steps:
diff --git a/.github/workflows/update-constraints-on-push.yml 
b/.github/workflows/update-constraints-on-push.yml
index 6dbce8cbac4..972a1da4c73 100644
--- a/.github/workflows/update-constraints-on-push.yml
+++ b/.github/workflows/update-constraints-on-push.yml
@@ -78,7 +78,8 @@ jobs:
     # runs are limited to release managers (same allowlist as the prod image
     # release workflow) because they push to the protected constraints-* 
branches.
     if: >-
-      github.event_name != 'workflow_dispatch' ||
+      github.repository == 'apache/airflow' &&
+      (github.event_name != 'workflow_dispatch' ||
       contains(fromJSON('[
       "ashb",
       "bugraoz93",
@@ -92,7 +93,7 @@ jobs:
       "utkarsharma2",
       "vincbeck",
       "vatsrahul1001",
-      ]'), github.event.sender.login)
+      ]'), github.event.sender.login))
     outputs:
       default-branch: ${{ steps.selective-checks.outputs.default-branch }}
       default-constraints-branch: ${{ 
steps.selective-checks.outputs.default-constraints-branch }}

Reply via email to