From a12c138c16c5b653d341f54456e588a8d3f11198 Mon Sep 17 00:00:00 2001 From: Artur Harasimiuk Date: Mon, 18 Jul 2022 13:35:52 +0200 Subject: [PATCH] fix workflow execution configure safe.directory Signed-off-by: Artur Harasimiuk --- .github/actions/neo-lint/lint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/neo-lint/lint.sh b/.github/actions/neo-lint/lint.sh index 471e497763..5b2541b712 100755 --- a/.github/actions/neo-lint/lint.sh +++ b/.github/actions/neo-lint/lint.sh @@ -1,12 +1,15 @@ #!/bin/bash # -# Copyright (C) 2021 Intel Corporation +# Copyright (C) 2021-2022 Intel Corporation # # SPDX-License-Identifier: MIT # set -e +set -x + +git config --global --add safe.directory ${GITHUB_WORKSPACE}/neo clang-format-11 --version @@ -16,8 +19,9 @@ INPUT_IREGEX="${INPUT_IREGEX:-.*\.(cpp|h|inl)}" ( cd ${INPUT_PATH} git fetch origin ${GITHUB_BASE_REF} + git show set -x - git diff -U0 --no-color origin/master..HEAD | clang-format-diff-11 -p1 -i -v -iregex ${INPUT_IREGEX} + git diff -U0 --no-color origin/${GITHUB_BASE_REF}..HEAD | clang-format-diff-11 -p1 -i -v -iregex ${INPUT_IREGEX} set +x )