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

Commit 2c98ea7

Browse files
author
Ryan Faircloth
authored
fix: remove v from version
1 parent 345c760 commit 2c98ea7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# limitations under the License.
1616
# ########################################################################
1717

18-
SEMVER_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+$'
19-
BETA_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$'
18+
SEMVER_REGEX='^v?[0-9]+\.[0-9]+\.[0-9]+$'
19+
BETA_REGEX='^v?[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$'
2020
echo working with version $INPUT_SEMVER
2121

2222
if [[ $INPUT_SEMVER =~ $SEMVER_REGEX ]];
@@ -36,6 +36,6 @@ else
3636
VERSION=v0.${INPUT_PRNUMBER}.${GITHUB_RUN_ID}
3737
fi
3838
fi
39-
40-
echo "Version to build is $VERSION"
41-
echo "::set-output name=VERSION::$VERSION"
39+
FINALVERSION=$(echo $VERSION | sed 's/v?\(.*\)/\1/')
40+
echo "Version to build is $FINALVERSION"
41+
echo "::set-output name=VERSION::$FINALVERSION"

0 commit comments

Comments
 (0)