Skip to content

Commit

Permalink
fix: regex for matching prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
bathienle committed Aug 22, 2023
1 parent 1cf9a74 commit 5d2a0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Prerelease check
run: |
if [[ ${{ github.ref_name }} =~ ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$ ]]; then
if [[ ${{ github.ref_name }} =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
echo "prerelease=false" >> $GITHUB_ENV
else
echo "prerelease=true" >> $GITHUB_ENV
Expand Down

0 comments on commit 5d2a0ef

Please sign in to comment.