Skip to content

Commit cc3e10d

Browse files
committed
Add format workflow
1 parent a8d0d15 commit cc3e10d

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: clang-format
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
clang-format:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
ref: ${{ github.head_ref }}
15+
fetch-depth: 2
16+
- uses: jayllyz/clang-format-action@v1
17+
with:
18+
clang-version: 17
19+
- name: Commit changes
20+
uses: stefanzweifel/git-auto-commit-action@v5
21+
with:
22+
commit_message: "style: clang format files"
23+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)