Skip to content

Commit 361c6f6

Browse files
ci: fix semantic release skipped due to head conflict (#263)
1 parent 83bff07 commit 361c6f6

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
name: Generate LLM.txt
22

33
on:
4-
# Trigger on releases
5-
release:
6-
types: [published]
7-
8-
# Trigger on pushes to main branch
9-
push:
10-
branches: [main]
11-
paths:
12-
- 'src/mcpm/commands/**'
13-
- 'src/mcpm/cli.py'
14-
- 'scripts/generate_llm_txt.py'
15-
16-
# Allow manual trigger
17-
workflow_dispatch:
4+
workflow_call:
185

196
jobs:
207
generate-llm-txt:

.github/workflows/semantic-release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
name: Semantic Release
22

33
on:
4-
workflow_dispatch:
54
push:
65
branches:
76
- main
87
paths:
98
- 'src/mcpm/**'
109
- 'pyproject.toml'
10+
workflow_dispatch:
1111

1212
permissions:
1313
contents: write
1414
issues: write
1515
pull-requests: write
16-
id-token: write # Required for PyPI trusted publishing
16+
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+
1924
test:
2025
uses: ./.github/workflows/test.yml
2126

2227
release:
2328
name: Release
24-
needs: test
29+
needs: [test, update-llm-txt]
2530
runs-on: ubuntu-latest
2631
environment:
2732
name: pypi
2833
url: https://pypi.org/p/mcpm
29-
34+
3035
steps:
3136
- name: Checkout
3237
uses: actions/checkout@v4

0 commit comments

Comments
 (0)