Add alternate reference for clang-format-check on pull request

This commit is contained in:
Dan Paulat 2024-11-28 08:42:20 -06:00
parent a78d02617f
commit 9e07b03b78

View file

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