Skip to content

ci: trigger docs build on changes to build inputs#1967

Merged
holtskinner merged 1 commit into
a2aproject:mainfrom
msrivastav13:fix/docs-workflow-paths
Jun 22, 2026
Merged

ci: trigger docs build on changes to build inputs#1967
holtskinner merged 1 commit into
a2aproject:mainfrom
msrivastav13:fix/docs-workflow-paths

Conversation

@msrivastav13

@msrivastav13 msrivastav13 commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1968.

The Docs Build and Deploy workflow (.github/workflows/docs.yml) only triggers when docs/**, mkdocs.yml, requirements-docs.txt, or the workflow file change. But the rendered site also depends on inputs that are not in the path filter:

  • .mkdocs/** — the macros module (.mkdocs/macros) and theme overrides (.mkdocs/overrides), both referenced from mkdocs.yml
  • specification/a2a.proto — the source the proto_to_table / proto_service_to_table macros parse to generate the API tables
  • scripts/build_docs.sh — the build entrypoint the workflow actually runs

A change to any of these can break the build or alter every rendered page while CI stays green. Concrete example: the macros anchor fix in #1966 changes rendering logic for the whole spec, yet build_and_deploy never ran on it because .mkdocs/** wasn't watched.

Change

Add .mkdocs/**, specification/a2a.proto, and scripts/build_docs.sh to both the push and pull_request path filters. No behavioral change to the build itself — it just runs in more of the cases where it should.

Verification

  • docs.yml parses as valid YAML.
  • Both paths: blocks updated identically.
  • Cross-checked the added paths against mkdocs.yml (custom_dir: .mkdocs/overrides, module_name: .mkdocs/macros) and scripts/build_docs.sh (reads specification/a2a.proto).
  • This PR self-demonstrates the fix: editing docs.yml triggered build_and_deploy, which previously would not run for a .mkdocs/-only change.

The Docs Build and Deploy workflow only ran when docs/**, mkdocs.yml,
requirements-docs.txt, or the workflow itself changed. But the rendered
site also depends on:

- .mkdocs/** - the macros module (.mkdocs/macros) and theme overrides
  (.mkdocs/overrides) referenced by mkdocs.yml
- specification/a2a.proto - source for the proto_to_table macros
- scripts/build_docs.sh - the build entrypoint the workflow invokes

Changes to these could break the build or alter every rendered page
without triggering CI (e.g. the macros.py anchor fix in a2aproject#1966 ran no
build check). Add them to the push and pull_request path filters.
@msrivastav13 msrivastav13 requested review from a team as code owners June 21, 2026 13:41
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@holtskinner holtskinner merged commit 28e27c9 into a2aproject:main Jun 22, 2026
7 of 8 checks passed
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.

Docs build CI doesn't trigger on changes to .mkdocs/ macros, proto, or build script

2 participants