File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ if [ "$CODEBUILD_WEBHOOK_EVENT" = "PULL_REQUEST_CREATED" ] || [ "$CODEBUILD_WEB
16
16
BRANCH=$SUBSTRING
17
17
18
18
elif [ " $CODEBUILD_WEBHOOK_EVENT " != " PULL_REQUEST_CREATED" ] && [ " $CODEBUILD_WEBHOOK_EVENT " != " PULL_REQUEST_REOPENED" ] && [ " $CODEBUILD_WEBHOOK_EVENT " != " PULL_REQUEST_UPDATED" ] && [ " $CODEBUILD_GIT_BRANCH " != " alpha" ] && [ " $CODEBUILD_GIT_BRANCH " != " master" ] ; then
19
- if [ $( git merge-base --is-ancestor $CODEBUILD_GIT_BRANCH " alpha" ) -eq 1 ]; then
19
+ if [ $( git merge-base --is-ancestor $CODEBUILD_GIT_BRANCH " alpha" ; echo $? ) -eq 1 ]; then
20
20
BRANCH=' alpha'
21
21
22
- elif [ $( git merge-base --is-ancestor $CODEBUILD_GIT_BRANCH " alpha" ) -eq 0 ]; then
22
+ elif [ $( git merge-base --is-ancestor $CODEBUILD_GIT_BRANCH " alpha" ; echo $? ) -eq 0 ]; then
23
23
BRANCH=' master'
24
24
25
25
fi
You can’t perform that action at this time.
0 commit comments