Skip to content

Commit a12c138

Browse files
fix workflow execution
configure safe.directory Signed-off-by: Artur Harasimiuk <[email protected]>
1 parent bab4c05 commit a12c138

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/actions/neo-lint/lint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/bin/bash
22

33
#
4-
# Copyright (C) 2021 Intel Corporation
4+
# Copyright (C) 2021-2022 Intel Corporation
55
#
66
# SPDX-License-Identifier: MIT
77
#
88

99
set -e
10+
set -x
11+
12+
git config --global --add safe.directory ${GITHUB_WORKSPACE}/neo
1013

1114
clang-format-11 --version
1215

@@ -16,8 +19,9 @@ INPUT_IREGEX="${INPUT_IREGEX:-.*\.(cpp|h|inl)}"
1619
(
1720
cd ${INPUT_PATH}
1821
git fetch origin ${GITHUB_BASE_REF}
22+
git show
1923
set -x
20-
git diff -U0 --no-color origin/master..HEAD | clang-format-diff-11 -p1 -i -v -iregex ${INPUT_IREGEX}
24+
git diff -U0 --no-color origin/${GITHUB_BASE_REF}..HEAD | clang-format-diff-11 -p1 -i -v -iregex ${INPUT_IREGEX}
2125
set +x
2226
)
2327

0 commit comments

Comments
 (0)