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:
leftibot 2026-04-15 16:48:41 -06:00
parent 04159106ac
commit 4ce9577654

View File

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