Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Fix tagging regex to accept semver build metadata (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz authored Mar 30, 2022
1 parent 567fb8a commit 1f9b436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
steps:
- name: Validate version
run: |
# Check if tag is X.Y.Z-snap or X.Y.Z-snap.N; N > 1
if [[ ! "${{ github.event.inputs.tag_name }}" =~ ^[0-9]+.[0-9]+.[0-9]+-snap(.[2-9]|.[1-9][0-9]+)?$ ]]
# Check if tag is X.Y.Z+snap or X.Y.Z+snap.N; N > 1
if [[ ! "${{ github.event.inputs.tag_name }}" =~ ^[0-9]+.[0-9]+.[0-9]+\+snap(.[2-9]|.[1-9][0-9]+)?$ ]]
then
echo "Invalid version!"
exit 1
Expand Down

0 comments on commit 1f9b436

Please sign in to comment.