elastic / docs

21 stars 333 forks source link

feat(all): only build docs if there's a doc change #3067

Closed kruskall closed 2 weeks ago

kruskall commented 1 month ago

extend the check to all remaining repositories

github-actions[bot] commented 1 month ago

A documentation preview will be available soon.

Request a new doc build by commenting * Rebuild this PR: `run docs-build` * Rebuild this PR and all Elastic docs: `run docs-build rebuild` `run docs-build` is much faster than `run docs-build rebuild`. A `rebuild` should only be needed in rare situations. If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status [here](https://buildkite.com/elastic/docs-build).
bmorelli25 commented 1 month ago

This is incredible

bmorelli25 commented 2 weeks ago

@elastic/docs-build-guild any reservations or thoughts before I merge this? This PR adds on to https://github.com/elastic/docs/pull/3066.

This PR enables all documentation repositories (except Kibana) to exist the documentation build early if there are no doc-related changes. This will save time and money. For all enabled repos, we fetch the latest changes from the target branch of the pull request and check for changes in specified files and directories with git diff.