Skip to content

docs-deploy: Skip pipeline on default-branch pushes without docs changes#99

Merged
reakaleek merged 3 commits into
mainfrom
jelly-horse
May 12, 2026
Merged

docs-deploy: Skip pipeline on default-branch pushes without docs changes#99
reakaleek merged 3 commits into
mainfrom
jelly-horse

Conversation

@reakaleek

Copy link
Copy Markdown
Member

What

Skip the docs-deploy pipeline (build, deploy, link-index update) on pushes to the default branch when no docs-relevant files changed.

Why

Currently docs-deploy.yml hardcodes has-changes: 'true' for all push events, triggering the full pipeline on every push to main — even when only code or config files changed.

How

Pass effective_any_modified from docs-build's check job to docs-deploy via a lightweight artifact. On push events, docs-deploy reads the artifact instead of hardcoding has-changes=true. Version branches keep current behavior via the existing use-release-branches override in docs-build.

  • docs-build.yml: Upload effective_any_modified as docs-build-check-metadata artifact from the check job
  • docs-deploy.yml: Download the artifact in preflight; read the value for push events with fallback to true on any failure

Test plan

  • Push to default branch without docs changes → pipeline skipped
  • Push to default branch with docs changes → pipeline runs
  • Push to version branch (e.g. 9.4) → pipeline runs regardless
  • Artifact missing or corrupted → falls back to current behavior (pipeline runs)

🤖 Generated with Claude Code

Pass effective_any_modified from docs-build's check job to docs-deploy
via artifact. On push events, docs-deploy reads the artifact instead of
hardcoding has-changes=true, so the build/deploy/link-index pipeline is
skipped when no docs-relevant files changed. Version branches keep
current behavior (always run) via the existing use-release-branches
override in docs-build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@reakaleek reakaleek requested a review from a team as a code owner April 16, 2026 13:28
@reakaleek reakaleek requested a review from technige April 16, 2026 13:28
reakaleek and others added 2 commits April 16, 2026 15:31
The override previously forced effective_any_modified=true on every push
to a version branch. Now it only triggers when github.event.created is
true (first push), so subsequent pushes to version branches respect
actual docs-change detection like the default branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@reakaleek reakaleek added the fix label May 12, 2026
@reakaleek reakaleek merged commit 98927f1 into main May 12, 2026
4 checks passed
@reakaleek reakaleek deleted the jelly-horse branch May 12, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants