Skip to content

Commit

Permalink
[#557] Add validation step
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed Dec 17, 2024
1 parent 2eb6716 commit 44efb98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/project_workflows/create_release_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
contents: write
pull-requests: write
steps:
- name: Validate Version Input
run: |
if ! [[ "${{ github.event.inputs.nextVersion }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: nextVersion must follow semantic versioning (e.g., 1.2.3)"
exit 1
fi
- name: Create Bump Version branch
uses: peterjgrainger/[email protected]
env:
Expand Down

0 comments on commit 44efb98

Please sign in to comment.