Modify checkout ref handling in auto-clang-format.yml

Updated the checkout action to support fallback for branch reference.
This commit is contained in:
Jason Turner 2026-04-15 16:39:17 -06:00 committed by GitHub
parent 83873a33f4
commit ae408ce9d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: '.'