From ae408ce9d466903def095f9ed7dbc97a5451ea3b Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 15 Apr 2026 16:39:17 -0600 Subject: [PATCH] Modify checkout ref handling in auto-clang-format.yml Updated the checkout action to support fallback for branch reference. --- .github/workflows/auto-clang-format.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-clang-format.yml b/.github/workflows/auto-clang-format.yml index a6422c14..0ffea8d2 100644 --- a/.github/workflows/auto-clang-format.yml +++ b/.github/workflows/auto-clang-format.yml @@ -8,7 +8,8 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.head_ref }} + ref: ${{ github.head_ref || github.ref_name }} + fetch-depth: 0 - uses: DoozyX/clang-format-lint-action@v0.20 with: source: '.'