Skip to content

Commit

Permalink
set variable as string (#5238)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsquared94 authored Jan 19, 2021
1 parent c62d6f5 commit 37ed158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37ed158

Please sign in to comment.