33#
44# Purpose: Automate labeling, assignment, and welcoming of pull requests for forked PRs.
55#
6- # Configuration: All settings are loaded from .env.base and . env.custom files for
6+ # Configuration: All settings are loaded from modular .github/ env/*.env files for
77# centralized management across all workflows.
88#
99# Triggers: Pull request events (opened, reopened, ready for review, closed, synchronize)
@@ -108,7 +108,7 @@ concurrency:
108108# --------------------------------------------------------------------
109109# Environment Variables
110110# --------------------------------------------------------------------
111- # Note: Configuration variables are loaded from .env.base and . env.custom files
111+ # Note: Configuration variables are loaded from modular .github/ env/*.env files
112112
113113jobs :
114114 # ------------------------------------------------------------
@@ -117,6 +117,8 @@ jobs:
117117 load-env :
118118 name : 🌍 Load Environment (Base Repo)
119119 runs-on : ubuntu-latest
120+ # Only run for fork PRs - same-repo PRs are handled by pull-request-management.yml
121+ if : ${{ github.event.pull_request.head.repo && github.event.pull_request.head.repo.full_name != github.repository }}
120122 # No write perms here
121123 permissions :
122124 contents : read
@@ -175,6 +177,8 @@ jobs:
175177 detect-fork :
176178 name : 🔍 Detect Fork PR
177179 runs-on : ubuntu-latest
180+ # Only run for fork PRs - same-repo PRs are handled by pull-request-management.yml
181+ if : ${{ github.event.pull_request.head.repo && github.event.pull_request.head.repo.full_name != github.repository }}
178182 permissions :
179183 contents : read
180184 outputs :
@@ -476,7 +480,8 @@ jobs:
476480 summary :
477481 name : 📊 Summary
478482 runs-on : ubuntu-latest
479- if : always()
483+ # Only run for fork PRs, but always show summary regardless of job status
484+ if : always() && github.event.pull_request.head.repo && github.event.pull_request.head.repo.full_name != github.repository
480485 needs : [load-env, detect-fork, handle-fork, clean-cache]
481486 steps :
482487 - name : 📄 Write summary
0 commit comments