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: |