Skip to content

Commit

Permalink
Merge pull request #314 from AgentOps-AI/fix-llms-txt
Browse files Browse the repository at this point in the history
fix llm txt workflow
  • Loading branch information
bboynton97 authored Feb 17, 2025
2 parents 3d2c759 + e53938e commit 59e4610
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/compile-llms-txt.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Compile llms.txt

on:
push:
pull_request:
types:
- closed
branches:
- main
paths:
- 'docs/**/*.mdx'
- 'docs/compile_llms_txt.py'

jobs:
compile:
# Only run if the PR was merged (not just closed)
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,4 +31,4 @@ jobs:
git config --local user.name "GitHub Action"
git add docs/llms.txt
git commit -m "Update llms.txt" || exit 0
git push
git push

0 comments on commit 59e4610

Please sign in to comment.