mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 13:54:58 +08:00
fix workflow execution
configure safe.directory Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bab4c0543e
commit
a12c138c16
8
.github/actions/neo-lint/lint.sh
vendored
8
.github/actions/neo-lint/lint.sh
vendored
@@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user