diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index f3e883d6..dbc0c2c9 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -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}