Skip to content

Commit 0a64993

Browse files
saraswatayuclaude
andcommitted
ci: release titles use bare vX.Y.Z; bump action versions
The release-create step inherited GITHUB_REF_NAME as the title, so v0.5.0 ended up published as 'swoop-v0.5.0' while v0.4.x were titled 'v0.4.0' / 'v0.4.1'. Pass --title v${VERSION} explicitly so future releases stay consistent. Tag still ships as swoop-vX.Y.Z (publish job and PyPI parser depend on that prefix). Also bump checkout/setup-python to Node 24-compatible versions to silence the deprecation warning on every CI run. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 530e7bf commit 0a64993

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
matrix:
1515
python-version: ["3.10", "3.13"]
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-python@v5
17+
- uses: actions/checkout@v5
18+
- uses: actions/setup-python@v6
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
@@ -26,8 +26,8 @@ jobs:
2626
build:
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v4
30-
- uses: actions/setup-python@v5
29+
- uses: actions/checkout@v5
30+
- uses: actions/setup-python@v6
3131
with:
3232
python-version: "3.13"
3333
- name: Install build tools
@@ -55,8 +55,8 @@ jobs:
5555
id-token: write
5656
contents: write
5757
steps:
58-
- uses: actions/checkout@v4
59-
- uses: actions/setup-python@v5
58+
- uses: actions/checkout@v5
59+
- uses: actions/setup-python@v6
6060
with:
6161
python-version: "3.13"
6262
- name: Install build tools
@@ -71,10 +71,12 @@ jobs:
7171
id: changelog
7272
run: |
7373
VERSION="${GITHUB_REF_NAME#swoop-v}"
74+
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
7475
# Extract the section between this version's header and the next version header
7576
awk "/^## \\[${VERSION}\\]/{found=1; next} /^## \\[/{if(found) exit} found{print}" CHANGELOG.md > release-notes.md
7677
cat release-notes.md
7778
- name: Create GitHub Release
78-
run: gh release create "${{ github.ref_name }}" --notes-file release-notes.md
79+
run: gh release create "${{ github.ref_name }}" --title "v${VERSION}" --notes-file release-notes.md
7980
env:
8081
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
VERSION: ${{ steps.changelog.outputs.version }}

0 commit comments

Comments
 (0)