Skip to content

Commit 0e214da

Browse files
niechenCodex
authored andcommitted
ci: run llm generator only on release
1 parent 4f9298f commit 0e214da

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/generate-llm-txt.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Generate LLM.txt
22

33
on:
4-
workflow_call:
4+
# Trigger on releases
5+
release:
6+
types: [published]
7+
8+
# Allow manual trigger
9+
workflow_dispatch:
510

611
jobs:
712
generate-llm-txt:
@@ -56,4 +61,4 @@ jobs:
5661
git commit -m "docs: update llm.txt for AI agents [skip ci]"
5762
git push
5863
env:
59-
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
64+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

.github/workflows/semantic-release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Semantic Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
78
paths:
89
- 'src/mcpm/**'
910
- 'pyproject.toml'
10-
workflow_dispatch:
1111

1212
permissions:
1313
contents: write
@@ -16,17 +16,12 @@ permissions:
1616
id-token: write # Required for PyPI trusted publishing
1717

1818
jobs:
19-
update-llm-txt:
20-
name: Update LLM.txt
21-
uses: ./.github/workflows/generate-llm-txt.yml
22-
secrets: inherit
23-
2419
test:
2520
uses: ./.github/workflows/test.yml
2621

2722
release:
2823
name: Release
29-
needs: [test, update-llm-txt]
24+
needs: test
3025
runs-on: ubuntu-latest
3126
environment:
3227
name: pypi

0 commit comments

Comments
 (0)