Skip to content

Commit 44efb98

Browse files
committed
[#557] Add validation step
1 parent 2eb6716 commit 44efb98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/project_workflows/create_release_pull_request.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ jobs:
6262
contents: write
6363
pull-requests: write
6464
steps:
65+
- name: Validate Version Input
66+
run: |
67+
if ! [[ "${{ github.event.inputs.nextVersion }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
68+
echo "Error: nextVersion must follow semantic versioning (e.g., 1.2.3)"
69+
exit 1
70+
fi
6571
- name: Create Bump Version branch
6672
uses: peterjgrainger/[email protected]
6773
env:

0 commit comments

Comments
 (0)