Skip to content

Commit

Permalink
Change regexp to grep regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Kalugin committed Jul 4, 2022
1 parent a4e6b00 commit b6f664d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-utbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
echo $GITHUB_REF_NAME
re="^[1-9][0-9]{3}\.[1]?[0-9]\.(0|[1-9][0-9]*)$"
if [[ $GITHUB_REF_NAME =~ $re ]]; then
if echo $GITHUB_REF_NAME | grep -Eq $re; then
export VERSION=$GITHUB_REF_NAME
echo "ARTIFACT_NAME=release-$VERSION" >> $GITHUB_ENV
else
Expand Down

0 comments on commit b6f664d

Please sign in to comment.