Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit a7a4f55

Browse files
author
Ryan Faircloth
authored
feat: support beta versions
1 parent 7ea9f6b commit a7a4f55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
# ########################################################################
1717

1818
SEMVER_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+$'
19+
BETA_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$'
1920
if [[ $INPUT_SEMVER =~ $SEMVER_REGEX ]];
2021
then
2122
echo using provided semver
2223
VERSION=$INPUT_SEMVER
24+
elif [[ $INPUT_SEMVER =~ $BETA_REGEX ]];
25+
VERSION=$(echo $INPUT_SEMVER | awk '{gsub("-beta\.", "B");print}')
2326
else
2427
if [[ $GITHUB_EVENT_NAME != 'pull_request' ]]
2528
then

0 commit comments

Comments
 (0)