Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

APIGOV-27843 - fix regex pattern #98

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ check_required_variables() {
[ -z "${TAG}" ] && echo "TAG variable not set" && exit 1
[ -z "${SDK}" ] && echo "SDK variable not set" && exit 1

pat='[0-9]+\.[0-9]+\.[0-9]'
pat='[0-9]+\.[0-9]+\.[0-9]+'
if [[ ! ${TAG} =~ $pat ]]; then
echo "TAG variable must be of the form X.X.X"
exit 1
fi

# don't post if this is a pre-release tag
pat='[0-9]+\.[0-9]+\.[0-9]-'
pat='[0-9]+\.[0-9]+\.[0-9]+-'
if [[ ${TAG} =~ $pat ]]; then
echo "This is an interim release... post to Teams skipped"
return 0
Expand Down