未验证 提交 97b774df 编写于 作者: W Wu Yi 提交者: GitHub

Merge pull request #12202 from typhoonzero/fix_apispec_ci

fix set-e exit when checking api
...@@ -333,9 +333,8 @@ function assert_api_not_changed() { ...@@ -333,9 +333,8 @@ function assert_api_not_changed() {
python ${PADDLE_ROOT}/tools/diff_api.py ${PADDLE_ROOT}/paddle/fluid/API.spec new.spec python ${PADDLE_ROOT}/tools/diff_api.py ${PADDLE_ROOT}/paddle/fluid/API.spec new.spec
deactivate deactivate
API_CHANGE=`git diff --name-only HEAD^ | grep "paddle/fluid/API.spec"` API_CHANGE=`git diff --name-only HEAD^ | grep "paddle/fluid/API.spec" | true`
echo "checking API.spec change..." echo "checking API.spec change, PR: ${GIT_PR_ID}, changes: ${API_CHANGE}"
echo "${GIT_PR_ID} , ${API_CHANGE}"
if [ ${API_CHANGE} ] && [ "${GIT_PR_ID}" != "" ]; then if [ ${API_CHANGE} ] && [ "${GIT_PR_ID}" != "" ]; then
# TODO: curl -H 'Authorization: token ${TOKEN}' # TODO: curl -H 'Authorization: token ${TOKEN}'
APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews | \ APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews | \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册