From eb58582627ead203c07a05c5f9b552476d963d61 Mon Sep 17 00:00:00 2001 From: Alec Geatches Date: Sun, 23 Feb 2025 17:22:19 -0700 Subject: [PATCH] Attempt running docs generation on PR closed to avoid `trunk` branch restrictions (#385) --- .github/workflows/ai-docs.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ai-docs.yml b/.github/workflows/ai-docs.yml index a5cf1726..fd39c93a 100644 --- a/.github/workflows/ai-docs.yml +++ b/.github/workflows/ai-docs.yml @@ -1,12 +1,13 @@ name: Generate AI Documentation on: - push: - branches: - - 'trunk' + pull_request: + types: + - closed jobs: generate-ai-docs: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write @@ -24,7 +25,7 @@ jobs: node-version: '20' - name: Install repomix - run: npm install -g repomix + run: npm install -g repomix@v0.2 - name: Generate AI documentation run: repomix --style=markdown docs/ example/ -o docs/ai.md