Skip to content

ci: skip Pages deploy on forks - #2

Merged
kshitiz-1225 merged 1 commit into
mainfrom
ci/skip-pages-deploy-on-forks
May 3, 2026
Merged

ci: skip Pages deploy on forks#2
kshitiz-1225 merged 1 commit into
mainfrom
ci/skip-pages-deploy-on-forks

Conversation

@kshitiz-1225

Copy link
Copy Markdown
Collaborator

docs workflow was failing with HTTP 404 from actions/deploy-pages@v4 on every push to main on this fork because GitHub Pages isn't enabled on wuad391/raiden.

The docs workflow was failing with HTTP 404 from
actions/deploy-pages@v4 on every push to main on this fork
because GitHub Pages isn't enabled on wuad391/raiden (and
shouldn't be — only the canonical tri-ml/raiden publishes
docs to wuad391.github.io would just be noise).

Gate both the Pages upload step and the deploy job on
`github.repository == 'tri-ml/raiden'`.  Forks still validate
the mkdocs build (the meaningful CI check); the upload + deploy
pair is skipped together so the deploy job's `needs: build`
dependency stays consistent.

Also bumps actions/checkout v4 -> v5 (Node 20 deprecation, same
fix already applied to lint.yml in 06a3bbe).
Copilot AI review requested due to automatic review settings May 3, 2026 03:48
@kshitiz-1225
kshitiz-1225 merged commit 75f6522 into main May 3, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Pages docs workflow to avoid failing on forks where Pages isn’t enabled, while still validating that the docs build succeeds.

Changes:

  • Gate the Pages artifact upload step to only run on tri-ml/raiden.
  • Gate the Pages deploy job to only run on tri-ml/raiden.
  • Bump actions/checkout to @v5 in the docs workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +44 to +47
# GitHub Pages is only enabled on the canonical upstream repo.
# Skipping on forks (e.g. wuad391/raiden) avoids a 404 from
# actions/deploy-pages on every push to main.
if: github.repository == 'tri-ml/raiden'
@kshitiz-1225
kshitiz-1225 deleted the ci/skip-pages-deploy-on-forks branch May 4, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants