From 47bd56e86e77240d7ab12c9d11184b2d7d4a7b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=8F=E7=99=BD?= <296015668@qq.com> Date: Thu, 4 Jul 2024 11:18:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20git=20workspace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index a7e61c3..3573330 100755 --- a/build.sh +++ b/build.sh @@ -43,6 +43,10 @@ function get_md5() { # First to build it workspace=${GITHUB_WORKSPACE} build_dir='' + +git config --global --add safe.directory /github/workspace +git config --global --add safe.directory ${workspace} + if [[ -f ${workspace}/build.sh ]];then build_dir=${workspace} fi