Skip to content

Disable Publish Docs workflow on forks - #2980

Merged
justinchuby merged 1 commit into
microsoft:mainfrom
take-cheeze:claude/disable-pages-workflow-forks-xvsfha
Jul 31, 2026
Merged

Disable Publish Docs workflow on forks#2980
justinchuby merged 1 commit into
microsoft:mainfrom
take-cheeze:claude/disable-pages-workflow-forks-xvsfha

Conversation

@take-cheeze

Copy link
Copy Markdown
Contributor

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

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 deploy job when github.event.repository.fork is true.
  • Documents the intent inline with a short comment.

@justinchuby
justinchuby enabled auto-merge (squash) July 31, 2026 04:25
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.63%. Comparing base (9ef0aac) to head (eaf1d86).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@justinchuby
justinchuby merged commit 4cd022b into microsoft:main Jul 31, 2026
28 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants