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

Commit

Permalink
fix: bash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth committed Jul 26, 2021
1 parent edd7625 commit 8ab7ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ BETA_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$'
echo working with version $INPUT_SEMVER

if [[ $INPUT_SEMVER =~ $SEMVER_REGEX ]];

then
echo using provided semver
VERSION=$INPUT_SEMVER
elif [[ $INPUT_SEMVER =~ $BETA_REGEX ]];
then
VERSION=$(echo $INPUT_SEMVER | awk '{gsub("-beta\.", "B");print}')
else
if [[ $GITHUB_EVENT_NAME != 'pull_request' ]];
Expand Down

0 comments on commit 8ab7ca8

Please sign in to comment.