Skip to content

Commit

Permalink
Update release script to handle -rc (#773)
Browse files Browse the repository at this point in the history
## Description


Update release script to handle `-rc`

## Why is this needed



Fixes: #

## How Has This Been Tested?





## How are existing users impacted? What migration steps/scripts do we need?





## Checklist:

I have:

- [ ] updated the documentation and/or roadmap (if required)
- [ ] added unit or e2e tests
- [ ] provided instructions on how to upgrade
  • Loading branch information
mergify[bot] authored Jul 18, 2023
2 parents 8ccefc1 + b97f63d commit 08ea799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/tag-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ if [ -z "${1-}" ]; then
fi

new_tag=${1-}
[[ $new_tag =~ ^v[0-9]*\.[0-9]*\.[0-9]*$ ]] || (
echo "Tag must be in the form of vX.Y.Z"
[[ $new_tag =~ ^v[0-9]*\.[0-9]*\.[0-9]?(-rc[1-9])*$ ]] || (
echo "Tag must be in the form of vX.Y.Z or vX.Y.Z-rc1"
exit 1
)

Expand Down

0 comments on commit 08ea799

Please sign in to comment.