Skip to content

Commit 405ce93

Browse files
Update style.yml
1 parent a4dff13 commit 405ce93

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/style.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Auto Format C++ (Google Style)
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
branches: [ main ]
@@ -17,7 +20,7 @@ jobs:
1720
- name: Checkout repository
1821
uses: actions/checkout@v4
1922
with:
20-
fetch-depth: 0 # required for pushing commits
23+
fetch-depth: 0
2124

2225
- name: Install clang-format
2326
run: |
@@ -40,4 +43,4 @@ jobs:
4043
with:
4144
commit_message: "style: auto-format C++ sources (Google, 80 cols)"
4245
branch: ${{ github.ref }}
43-
file_pattern: "*.cpp *.h *.hpp"
46+
file_pattern: "**/*.cpp **/*.h **/*.hpp"

0 commit comments

Comments
 (0)