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

This commit is contained in:
Bryce Thorup
2024-08-30 14:36:20 -06:00
parent 6052cc0a9f
commit 2254f431f8
3 changed files with 9 additions and 3 deletions

View File

@@ -1 +1,7 @@
echo $(git rev-parse --abbrev-ref HEAD)
#!/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