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 .+/(.+)$'
|
||||
[[ $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
|
||||
|
||||
Reference in New Issue
Block a user