We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d2c759 + e53938e commit 59e4610Copy full SHA for 59e4610
.github/workflows/compile-llms-txt.yml
@@ -1,14 +1,19 @@
1
name: Compile llms.txt
2
3
on:
4
- push:
+ pull_request:
5
+ types:
6
+ - closed
7
branches:
8
- main
9
paths:
10
- 'docs/**/*.mdx'
11
+ - 'docs/compile_llms_txt.py'
12
13
jobs:
14
compile:
15
+ # Only run if the PR was merged (not just closed)
16
+ if: github.event.pull_request.merged == true
17
runs-on: ubuntu-latest
18
steps:
19
- uses: actions/checkout@v3
@@ -26,4 +31,4 @@ jobs:
26
31
git config --local user.name "GitHub Action"
27
32
git add docs/llms.txt
28
33
git commit -m "Update llms.txt" || exit 0
29
- git push
34
+ git push
0 commit comments