Skip to content

Commit

Permalink
Refactor entrypoint.sh (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
micnncim authored May 4, 2020
1 parent 667bd2a commit 925a515
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

set -e

text=${INPUT_TEXT}
regex=${INPUT_REGEX}

if echo "${text}" | grep -Eq "${regex}"; then
if echo "${INPUT_TEXT}" | grep -Eq "${INPUT_REGEX}"; then
echo "::set-output name=match::true"
exit 0
fi
Expand Down

0 comments on commit 925a515

Please sign in to comment.