Skip to content

Commit 107578a

Browse files
committed
Make sure we have the base branch
1 parent 06844e4 commit 107578a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
echo "Pull request's branch is: ${PR_BRANCH}"
2727
clang-format-7 --version
2828
while read file ; do EXCLUDES+="':(top,exclude)$file' " ; done < .clang-format-ignore
29+
git checkout ${BASE_BRANCH}
30+
git checkout -
2931
MERGE_BASE=$(git merge-base ${BASE_BRANCH} ${PR_BRANCH})
3032
echo "Checking for formatting errors introduced since $MERGE_BASE"
3133
# use eval so that quotes (as inserted into $EXCLUDES above) are not interpreted as parts of file names

0 commit comments

Comments
 (0)