mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-04-30 19:09:26 +08:00
Modify checkout ref handling in auto-clang-format.yml
Updated the checkout action to support fallback for branch reference.
This commit is contained in:
parent
83873a33f4
commit
ae408ce9d4
3
.github/workflows/auto-clang-format.yml
vendored
3
.github/workflows/auto-clang-format.yml
vendored
@ -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: '.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user