Skip to content

Commit

Permalink
Add PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Nov 1, 2023
1 parent fc69f22 commit d7791f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/clang-format-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
fetch-depth: 2

- name: Find merge base
env:
PR_NUMBER: ${{ github.event.number }}
run: |
until git merge-base $GITHUB_SHA pull/$PR_NUMBER
do
depth=$((depth+100))
depth=$((depth+1000))
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" ]
Expand Down

0 comments on commit d7791f8

Please sign in to comment.