From 972542b19b49da986cb0d83bef325e8cbb1a7124 Mon Sep 17 00:00:00 2001 From: Liujie0926 <44688141+Liujie0926@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:06:00 +0800 Subject: [PATCH] fix ci scripts (#8063) --- scripts/distribute/run_ci.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/distribute/run_ci.sh b/scripts/distribute/run_ci.sh index c5ea0540926e..14e86ac625aa 100644 --- a/scripts/distribute/run_ci.sh +++ b/scripts/distribute/run_ci.sh @@ -67,12 +67,13 @@ for file_name in `git diff --numstat upstream/${AGILE_COMPILE_BRANCH} |awk '{pri dir4=${arr_file_name[3]} file_item=$dir1/$dir2/$dir3/$dir4 echo "file_name:"${file_name}, "path:"${file_item} + if [[ ${dir1} =~ "paddlenlp" ]];then + export FLAGS_paddlenlp=1 + fi if [ ! -f ${file_name} ];then # 针对pr删掉文件 continue elif [[ ${file_name##*.} == "md" ]] || [[ ${file_name##*.} == "rst" ]] || [[ ${dir1} == "docs" ]];then continue - elif [[ ${dir1} =~ "paddlenlp" ]];then - export FLAGS_paddlenlp=1 else for ((i=0; i<${#target_lists_for_gpt[@]}; i++)); do if [[ ! ${dir3} =~ "benchmarks" ]] && [[ ${file_item} == *${target_lists_for_gpt[i]}* ]];then