diff --git a/action.sh b/action.sh index 8e6fd24..97b145b 100755 --- a/action.sh +++ b/action.sh @@ -1,7 +1,5 @@ -#!/bin/bash -commit_subject=$(git log -1 --pretty=format:%s) -regex='Merge pull request #[0-9]+ from .+/(.+)$' -[[ $commit_subject =~ $regex ]] -branch_name=${BASH_REMATCH[1]} -echo $branch_name \ No newline at end of file +message="$(git rev-parse --abbrev-ref HEAD)" +if [[ $message == *"__post__"* ]]; then + echo "It's there!" +fi