This commit is contained in:
10
action.sh
10
action.sh
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
|
||||||
commit_subject=$(git log -1 --pretty=format:%s)
|
|
||||||
|
|
||||||
regex='Merge pull request #[0-9]+ from .+/(.+)$'
|
message="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
[[ $commit_subject =~ $regex ]]
|
if [[ $message == *"__post__"* ]]; then
|
||||||
branch_name=${BASH_REMATCH[1]}
|
echo "It's there!"
|
||||||
echo $branch_name
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user