acoustic-carpenter-78188
04/23/2026, 6:32 PMgit-town GitHub Actions job fails on pull requests opened from forks because the git-town/action requires write access to the repository (to post PR comments / update the branch stack), which is not granted to workflows triggered by fork PRs.
Example failing run: https://github.com/flyteorg/flyte/actions/runs/24802528018/job/72588574953?pr=7249
What changes were proposed in this pull request?
Add an if guard to the git-town job so it only runs when the PR head repository matches the base repository (i.e. the branch lives in flyteorg/flyte, not in a contributor's fork).
if: github.event.pull_request.head.repo.full_name == github.repository
How was this patch tested?
Opened this PR from a fork (pingsutw/flyte) to verify the git-town job is skipped on fork PRs.
Labels
• fixed
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
• main
• #6583
• ci: skip git-town job on PRs from forks 👈
flyteorg/flyteacoustic-carpenter-78188
04/24/2026, 12:48 AM