From 27178b670f0ae1cd93002dfb357bb9d55e2b0f98 Mon Sep 17 00:00:00 2001 From: Bryce Thorup Date: Fri, 30 Aug 2024 14:40:59 -0600 Subject: [PATCH] test --- action.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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