Skip to content

Commit

Permalink
Fix github refs
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Nov 1, 2023
1 parent fea048e commit fc69f22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/clang-format-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:

- name: Find merge base
run: |
until git merge-base $GITHUB_BASE_REF $GITHUB_HEAD_REF
until git merge-base $GITHUB_SHA pull/$PR_NUMBER
do
depth=$((depth+100))
git fetch --depth=$depth origin $GITHUB_BASE_REF && git fetch --depth=$depth origin $GITHUB_HEAD_REF
git fetch --depth=$depth origin $GITHUB_HEAD_REF
git fetch --depth=$depth origin refs/pull/$PR_NUMBER/head:pull/$PR_NUMBER
if [ "$depth" -gt "10000" ]
then
exit 1
Expand Down

0 comments on commit fc69f22

Please sign in to comment.