From 4e49929926829f9ba370a16cd180fafd60a83921 Mon Sep 17 00:00:00 2001 From: Rafik Farhad Date: Fri, 14 May 2021 15:32:07 +0600 Subject: [PATCH] =?UTF-8?q?Fixed=20invalid=20default=20style=20-=20#1=20?= =?UTF-8?q?=F0=9F=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReadMe.md | 8 ++++---- action.yml | 4 ++-- entrypoint.sh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index 4babd0b..84e81c6 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -25,9 +25,9 @@ or, for all nested folder `"src/**/*.h,src/**/*.c"` ### `style` -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. +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. -Default: `LVM` +Default: `LLVM` ## Sample Workflow File Create a file in `.github/workflows/` folder with: @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: RafikFarhad/clang-format-github-action@v1 + - uses: RafikFarhad/clang-format-github-action@v1.0.1 with: sources: "src/**/*.h,src/**/*.c,test/**/*.c" ``` @@ -54,6 +54,6 @@ Kudos to [@silkeh](github.com/silkeh) for his awesome [docker image](https://hub ## Contribution -Feel free to submit PR and raise issue. +Feel free to submit PR and/or raise issue. 🌞 Thanks for using 🌞 diff --git a/action.yml b/action.yml index 19f87aa..3663ead 100644 --- a/action.yml +++ b/action.yml @@ -8,11 +8,11 @@ inputs: style: description: The style to use by clang-format. required: false - default: 'LVM' + default: 'LLVM' sources: description: | Location of sources to check. It can be a single file, - regex of a folder or multiple selecteor seprated + regex of a directory or multiple selecteor seprated by comma (`,`) required: false default: "**/*" diff --git a/entrypoint.sh b/entrypoint.sh index 196e2a6..b33be7b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -38,7 +38,7 @@ function resolve_inputs() { function check_file() { local file="$1" - message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LVM "${file}")" + message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LLVM "${file}")" local status="$?" if [ $status -ne 0 ]; then echo "$message" >&2