Skip to content

Commit 4e49929

Browse files
committed
Fixed invalid default style - #1 🛠
1 parent d93d8bf commit 4e49929

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ReadMe.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ or, for all nested folder
2525
`"src/**/*.h,src/**/*.c"`
2626

2727
### `style`
28-
The style for `clang-format`. Possible value are: `LVM, Google, Chromium, Mozilla, WebKit`. If your repository has a `.clang-format` file in the root directory then you can use `file` option here.
28+
The style for `clang-format`. Possible value are: `LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit`. If your repository has a `.clang-format` file in the root directory then you can use `file` option here.
2929

30-
Default: `LVM`
30+
Default: `LLVM`
3131

3232
## Sample Workflow File
3333
Create a file in `.github/workflows/` folder with:
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v2
43-
- uses: RafikFarhad/clang-format-github-action@v1
43+
- uses: RafikFarhad/clang-format-github-action@v1.0.1
4444
with:
4545
sources: "src/**/*.h,src/**/*.c,test/**/*.c"
4646
```
@@ -54,6 +54,6 @@ Kudos to [@silkeh](github.com/silkeh) for his awesome [docker image](https://hub
5454

5555
## Contribution
5656

57-
Feel free to submit PR and raise issue.
57+
Feel free to submit PR and/or raise issue.
5858

5959
🌞 Thanks for using 🌞

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ inputs:
88
style:
99
description: The style to use by clang-format.
1010
required: false
11-
default: 'LVM'
11+
default: 'LLVM'
1212
sources:
1313
description: |
1414
Location of sources to check. It can be a single file,
15-
regex of a folder or multiple selecteor seprated
15+
regex of a directory or multiple selecteor seprated
1616
by comma (`,`)
1717
required: false
1818
default: "**/*"

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function resolve_inputs() {
3838

3939
function check_file() {
4040
local file="$1"
41-
message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LVM "${file}")"
41+
message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LLVM "${file}")"
4242
local status="$?"
4343
if [ $status -ne 0 ]; then
4444
echo "$message" >&2

0 commit comments

Comments
 (0)