Skip to content

Commit bbac6f6

Browse files
committed
👷 update release workflow
1 parent 9011f31 commit bbac6f6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release-trigger.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Trigger Release
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version to release"
8+
required: true
9+
type: string
510

611
jobs:
712
archive:
@@ -16,7 +21,10 @@ jobs:
1621
- name: Setup Python environment
1722
uses: ./.github/actions/setup-python
1823

19-
- run: echo "TAG_NAME=v$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version)" >> $GITHUB_ENV
24+
- name: Update version in pyproject.toml
25+
run: |
26+
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version ${{ github.event.inputs.version }}
27+
echo "TAG_NAME=v${{ github.event.inputs.version }}" >> $GITHUB_ENV
2028
2129
- name: Archive Changelog
2230
uses: docker://ghcr.io/nonebot/auto-changelog:master

0 commit comments

Comments
 (0)