mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-07-30 16:26:28 +08:00
Address review: run auto-clang-format on push to develop/master instead of PRs
The workflow cannot push back to fork branches, so running on pull_request was fundamentally broken for fork PRs. Changed trigger to push on develop and master branches, and simplified checkout (no fork-specific options needed). 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
04159106ac
commit
4ce9577654
10
.github/workflows/auto-clang-format.yml
vendored
10
.github/workflows/auto-clang-format.yml
vendored
@ -1,5 +1,9 @@
|
||||
name: auto-clang-format
|
||||
on: [pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -7,10 +11,6 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
fetch-depth: 0
|
||||
- uses: DoozyX/clang-format-lint-action@v0.20
|
||||
with:
|
||||
source: '.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user