Disable Publish Docs workflow on forks - #2980
Merged
justinchuby merged 1 commit intoJul 31, 2026
Merged
Conversation
Guard the deploy job with a condition that skips it when the repository is a fork, so it doesn't trigger on fork sync pushes to main. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AnvSvs4hLwKRpCTUQFVUsn
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Pages documentation publishing workflow to avoid deploying from forked repositories, preventing unwanted deploy attempts when a fork is synced/pushed to main.
Changes:
- Adds a job-level guard to skip the
deployjob whengithub.event.repository.forkistrue. - Documents the intent inline with a short comment.
justinchuby
approved these changes
Jul 31, 2026
justinchuby
enabled auto-merge (squash)
July 31, 2026 04:25
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2980 +/- ##
=======================================
Coverage 72.63% 72.63%
=======================================
Files 265 265
Lines 32204 32204
Branches 3041 3041
=======================================
Hits 23391 23391
Misses 7779 7779
Partials 1034 1034 ☔ View full report in Codecov by Harness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guard the deploy job with a condition that skips it when the repository is a fork, so it doesn't trigger on fork sync pushes to main.
Claude-Session: https://claude.ai/code/session_01AnvSvs4hLwKRpCTUQFVUsn