Fix pull request alternate reference

This commit is contained in:
Dan Paulat 2024-11-28 08:54:53 -06:00
parent 9e07b03b78
commit 8c7c04c797

View file

@ -35,6 +35,6 @@ jobs:
- name: Check Formatting
shell: bash
run: |
MERGE_BASE=$(git merge-base origin/develop ${{ github.head_ref || github.ref }})
MERGE_BASE=$(git merge-base origin/develop ${{ github.event.pull_request.head_sha || github.ref }})
echo "Comparing against ${MERGE_BASE}"
git clang-format-17 --diff --style=file -v ${MERGE_BASE}