Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriko1211 committed Aug 7, 2024
1 parent 2f418fa commit fd6fbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bumpup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
env:
VERSION: ${{ github.event.inputs.gem-version }}
run: |
regex="\(0\|[1-9][0-9]*\).\(0\|[1-9][0-9]*\)\.\(0\|[1-9][0-9]*\)\.\([0-9]*\)"
regex="^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
if [[ "${VERSION}" =~ $regex ]]; then
echo OK
else
Expand Down

0 comments on commit fd6fbc9

Please sign in to comment.