mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-04-30 19:09:26 +08:00
Address review: restore ref option to fix detached HEAD in auto-clang-format
The previous commit (5fc11e6) incorrectly removed the ref option from the checkout step. actions/checkout@v6 on pull_request events defaults to the merge ref (detached HEAD), so ref: github.head_ref is required for EndBug/add-and-commit to push back to the PR branch. Requested by @lefticus in PR #691 review. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5fc11e626c
commit
83873a33f4
2
.github/workflows/auto-clang-format.yml
vendored
2
.github/workflows/auto-clang-format.yml
vendored
@ -7,6 +7,8 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
- uses: DoozyX/clang-format-lint-action@v0.20
|
||||
with:
|
||||
source: '.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user