fix workflow execution

configure safe.directory

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2022-07-18 13:35:52 +02:00
committed by Compute-Runtime-Automation
parent bab4c0543e
commit a12c138c16

View File

@@ -1,12 +1,15 @@
#!/bin/bash #!/bin/bash
# #
# Copyright (C) 2021 Intel Corporation # Copyright (C) 2021-2022 Intel Corporation
# #
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# #
set -e set -e
set -x
git config --global --add safe.directory ${GITHUB_WORKSPACE}/neo
clang-format-11 --version clang-format-11 --version
@@ -16,8 +19,9 @@ INPUT_IREGEX="${INPUT_IREGEX:-.*\.(cpp|h|inl)}"
( (
cd ${INPUT_PATH} cd ${INPUT_PATH}
git fetch origin ${GITHUB_BASE_REF} git fetch origin ${GITHUB_BASE_REF}
git show
set -x 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 set +x
) )