Skip to content

Commit

Permalink
fix: regex for matching prerelease (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
bathienle authored Aug 22, 2023
1 parent 81dbc20 commit ae00abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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 Expand Up @@ -112,4 +112,4 @@ jobs:
});
} catch (error) {
core.setFailed(error.message);
}
}

0 comments on commit ae00abe

Please sign in to comment.