File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -333,9 +333,8 @@ function assert_api_not_changed() {
333
333
python ${PADDLE_ROOT} /tools/diff_api.py ${PADDLE_ROOT} /paddle/fluid/API.spec new.spec
334
334
deactivate
335
335
336
- API_CHANGE=` git diff --name-only HEAD^ | grep " paddle/fluid/API.spec" `
337
- echo " checking API.spec change..."
338
- echo " ${GIT_PR_ID} , ${API_CHANGE} "
336
+ API_CHANGE=` git diff --name-only HEAD^ | grep " paddle/fluid/API.spec" | true`
337
+ echo " checking API.spec change, PR: ${GIT_PR_ID} , changes: ${API_CHANGE} "
339
338
if [ ${API_CHANGE} ] && [ " ${GIT_PR_ID} " != " " ]; then
340
339
# TODO: curl -H 'Authorization: token ${TOKEN}'
341
340
APPROVALS=` curl -H " Authorization: token ${GITHUB_API_TOKEN} " https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID} /reviews | \
You can’t perform that action at this time.
0 commit comments