Skip to content

Commit 59e4610

Browse files
authored
Merge pull request #314 from AgentOps-AI/fix-llms-txt
fix llm txt workflow
2 parents 3d2c759 + e53938e commit 59e4610

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/compile-llms-txt.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
name: Compile llms.txt
22

33
on:
4-
push:
4+
pull_request:
5+
types:
6+
- closed
57
branches:
68
- main
79
paths:
810
- 'docs/**/*.mdx'
11+
- 'docs/compile_llms_txt.py'
912

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

0 commit comments

Comments
 (0)