From 0391c32fa54dcffc9d61e34f106433ab053c20fc Mon Sep 17 00:00:00 2001 From: Johanan Date: Sun, 19 May 2024 15:58:16 -0400 Subject: [PATCH] feat(check): Expose the full clang-format version (#195) Resolves: https://github.com/jidicula/clang-format-action/issues/168 --- check.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/check.sh b/check.sh index e15cf38..46dd269 100755 --- a/check.sh +++ b/check.sh @@ -87,6 +87,12 @@ fi # initialize exit code exit_code=0 +# output clang-format version +docker run \ + --volume "$(pwd)":"$(pwd)" \ + --workdir "$(pwd)" \ + ghcr.io/jidicula/clang-format:"$CLANG_FORMAT_MAJOR_VERSION" --version + # All files improperly formatted will be printed to the output. src_files=$(find "$CHECK_PATH" -name .git -prune -o -regextype posix-egrep -regex "$INCLUDE_REGEX" -print)