Skip to content

Commit

Permalink
Attempt running docs generation on PR closed to avoid trunk branch …
Browse files Browse the repository at this point in the history
…restrictions (#385)
  • Loading branch information
alecgeatches authored Feb 24, 2025
1 parent 32516b9 commit eb58582
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ai-docs.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit eb58582

Please sign in to comment.