From ff7b6a1c936405c7db5099395e26b5cd27eba000 Mon Sep 17 00:00:00 2001 From: Art Berger Date: Wed, 27 May 2026 14:22:12 -0400 Subject: [PATCH] ref docs workflow to run nightly Signed-off-by: Art Berger --- .github/workflows/update-ref-docs.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-ref-docs.yaml b/.github/workflows/update-ref-docs.yaml index 56790074..ad186279 100644 --- a/.github/workflows/update-ref-docs.yaml +++ b/.github/workflows/update-ref-docs.yaml @@ -1,13 +1,15 @@ name: Update Reference Documentation on: - workflow_dispatch: # Allow manual triggers for now - # Later we can add: - # push: - # paths: - # - 'api/v1alpha2/**' - # branches: - # - main + workflow_dispatch: # Allow manual triggers + schedule: + # Nightly at 06:30 UTC: regenerate API/Helm docs from the latest kagent/kmcp main so docs don't drift from code. + - cron: '30 6 * * *' + +# Queue overlapping runs (e.g. nightly cron + a manual dispatch) so they don't force-push the same PR branch concurrently. +concurrency: + group: update-ref-docs + cancel-in-progress: false jobs: generate-api-docs: @@ -366,7 +368,6 @@ jobs: This PR was automatically generated by the [**Update Reference documentation** workflow](https://github.com/${{ github.repository_owner }}/website/actions/workflows/update-ref-docs.yaml). branch: api-gen-update - branch-suffix: timestamp delete-branch: true base: main labels: |