We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05a497 commit 3df94b8Copy full SHA for 3df94b8
.github/workflows/release.yml
@@ -4,7 +4,7 @@ on:
4
workflow_dispatch:
5
inputs:
6
new_version:
7
- description: 'New version number (e.g., 1.2.3)'
+ description: 'New version number (e.g., major.minor.patch-[alpha|beta|rc].N.postN)'
8
required: true
9
10
jobs:
@@ -31,7 +31,10 @@ jobs:
31
run: pip install bump2version
32
33
- name: Bump version
34
- run: |
+ if [[ ! "${{ github.event.inputs.new_version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[alpha|beta|rc]\.[0-9]+)?(\.post[0-9]+)?$ ]]; then
35
+ echo "Error: New version does not match the required format (e.g., major.minor.patch-[alpha|beta|rc].N.postN)." >&2
36
+ exit 1
37
+ fi
38
bumpversion --new-version ${{ github.event.inputs.new_version }} --no-commit --no-tag minor
39
40
- name: Commit and tag version
0 commit comments