set variable as string
@@ -16,7 +16,7 @@ jobs:
run: |
str="${{ github.event.head_commit.message }}"
regex="^release\s*:\s*(v[0-9]+\.[0-9]+\.[0-9]+|[0-9]+\.[0-9]+\.[0-9]+)\s*$"
- if [[ $str =~ $regex ]]; then
+ if [[ "$str" =~ $regex ]]; then
echo "::set-output name=applicable::true"
echo This is a release commit.
fi
