From 0beb1f3b9e36f616a35a8f97c8ec5980bdb86675 Mon Sep 17 00:00:00 2001 From: Nick Josevski Date: Fri, 22 May 2026 21:26:15 +1000 Subject: [PATCH] ci: regenerate docs on push to main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds push-to-main with a path filter scoped to dirs that affect generated docs, so docs PRs are opened between releases without relying on manual dispatch. Tag-push behaviour is preserved — GitHub does not apply paths filters to tag pushes, so the existing v* release trigger still fires unconditionally. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/generate-docs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index b548c445..ad09e6f4 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -2,8 +2,16 @@ name: 'Generate Docs' on: workflow_dispatch: push: + branches: + - main tags: - 'v*' + paths: + - 'cmd/gen-docs/**' + - 'pkg/cmd/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/generate-docs.yml' env: DOCS_TOKEN: ${{ secrets.DOCS_TOKEN }} jobs: