From 93c63d183fe47bb40a7f16af4145fcad597d7c05 Mon Sep 17 00:00:00 2001 From: chentianyu03 Date: Tue, 8 Sep 2020 12:25:36 +0800 Subject: [PATCH] Ci scripts (#2568) * add new ci_scripts for new paddle doc dirs * fix path error * fix path error --- ci_scripts/checkapproval.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci_scripts/checkapproval.sh b/ci_scripts/checkapproval.sh index cbb3c27d9..9bd4b9929 100644 --- a/ci_scripts/checkapproval.sh +++ b/ci_scripts/checkapproval.sh @@ -3,7 +3,7 @@ API_FILES=("doc/paddle/api/paddle") for API_FILE in ${API_FILES[*]}; do - API_CHANGE=`git diff --name-only upstream/$BRANCH | grep "${API_FILE}" + API_CHANGE=`git diff --name-only upstream/$BRANCH | grep "${API_FILE}"` if [ "${API_CHANGE}" ];then approval_line=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/FluidDoc/pulls/${GIT_PR_ID}/reviews?per_page=10000` if [ "${API_FILE}" == "doc/paddle/api/paddle" ];then @@ -17,3 +17,4 @@ for API_FILE in ${API_FILES[*]}; do exit 1 fi done + -- GitLab