Add weekly scheduled workflow to rebuild docs site#3110
Add weekly scheduled workflow to rebuild docs site#3110larainema wants to merge 1 commit intokubernetes-sigs:mainfrom
Conversation
The docs site embeds content from external repositories (e.g. the getting-started page is embedded from CAPI). This embedded content only updates when Netlify rebuilds the site, which only happens on push to main. If no PRs are merged for a while, the embedded content becomes stale. Add a weekly scheduled GitHub Actions workflow that triggers a Netlify build via a build hook. This ensures the docs site always has the latest content from embedded external sources. Maintainers need to: 1. Create a build hook in Netlify (Site settings > Build & deploy > Build hooks) 2. Add the hook URL as a GitHub Actions secret named NETLIFY_BUILD_HOOK Signed-off-by: Dong Ma <winterma.dong@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @larainema. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
/ok-to-test |
What problem does this PR solve?
The docs site at https://cluster-api-openstack.sigs.k8s.io embeds content from external repositories using
mdbook-embed. For example, the getting-started page is embedded directly from CAPI.Since the site is deployed via Netlify and only rebuilds on push to
main, the embedded external content becomes stale if no PRs are merged for some time.Fixes #2811
Solution
Add a weekly scheduled GitHub Actions workflow that triggers a Netlify build via a build hook. This Add a weekly scheduled GitHub Actions workflow that triggers a Netlify build via a [build hook](https://docs.netlify.com/conmmits.
The workflow also supports
workflow_dispatchfor manual triggering.Setup required by maintainers
After merging, a maintainer with Netlify access needs to:
weekly-docs-rebuild)NETLIFY_BUILD_HOOK