test
All checks were successful
Push to main / Reset-Version-Tag (push) Successful in 4s

This commit is contained in:
Bryce Thorup
2024-08-30 14:40:59 -06:00
parent 2254f431f8
commit 27178b670f

View File

@@ -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
message="$(git rev-parse --abbrev-ref HEAD)"
if [[ $message == *"__post__"* ]]; then
echo "It's there!"
fi