Skip to content

Commit 8920c67

Browse files
authored
Update clang-format-fix.yml
1 parent e7e4a88 commit 8920c67

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
1-
name: clang-format Check
1+
name: clang-format Commit Chanages
22
on:
33
workflow_dispatch:
44
push:
5-
paths-ignore:
6-
- '**.md'
7-
- '**.txt'
8-
- 'docs/**'
95
jobs:
106
formatting-check:
11-
name: Formatting Check
7+
name: Commit Format Changes
128
runs-on: ubuntu-latest
139
if: "!contains(github.event.head_commit.message, 'skip-ci')"
10+
permissions:
11+
contents: write # In order to allow EndBug/add-and-commit to commit changes
1412
steps:
15-
- uses: actions/checkout@v2
16-
- name: Run clang-format style check for C programs.
17-
uses: DoozyX/clang-format-lint-action@v0.11
13+
- uses: actions/checkout@v3
14+
- name: Fix C formatting issues detected by clang-format
15+
uses: DoozyX/clang-format-lint-action@v0.13
1816
with:
1917
source: '.'
2018
extensions: 'c,h,cpp,hpp'
2119
clangFormatVersion: 10
2220
inplace: True
2321
style: file
2422
# exclude: './config '
25-
- uses: EndBug/add-and-commit@v7
23+
- uses: EndBug/add-and-commit@v9
2624
with:
2725
author_name: github-actions
2826
author_email: github-actions[bot]@users.noreply.github.com
29-
message: 'Committing clang-format changes'
27+
message: 'Committing clang-format changes'

0 commit comments

Comments
 (0)