Skip to content

Commit

Permalink
SWI-1695: updating the regex again
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajanu committed Oct 23, 2023
1 parent 85d141e commit ce128e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Check Release Tag Format
run: |
re=^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(beta|alpha|rc))(\.[0-9]+)?$
re='^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(beta|alpha|rc))(\.[0-9]+)?$'
if ! [[ $RELEASE_VERSION =~ $re ]]; then
echo "Tag does not match expected regex pattern for beta releases ($re)"
echo $RELEASE_VERSION
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:

- name: Check Release Tag Format
run: |
re=^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
re='^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$'
if ! [[ $RELEASE_VERSION =~ $re ]]; then
echo "Tag does not match expected regex pattern for releases ($re)"
echo $RELEASE_VERSION
Expand Down

0 comments on commit ce128e2

Please sign in to comment.