We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9011f31 commit bbac6f6Copy full SHA for bbac6f6
.github/workflows/release-trigger.yml
@@ -2,6 +2,11 @@ name: Trigger Release
2
3
on:
4
workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: "Version to release"
8
+ required: true
9
+ type: string
10
11
jobs:
12
archive:
@@ -16,7 +21,10 @@ jobs:
16
21
- name: Setup Python environment
17
22
uses: ./.github/actions/setup-python
18
23
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
20
28
29
- name: Archive Changelog
30
uses: docker://ghcr.io/nonebot/auto-changelog:master
0 commit comments