We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cd727e + b03fac4 commit 70f4a3bCopy full SHA for 70f4a3b
paddle/scripts/paddle_build.sh
@@ -333,7 +333,8 @@ function assert_api_not_changed() {
333
python ${PADDLE_ROOT}/tools/diff_api.py ${PADDLE_ROOT}/paddle/fluid/API.spec new.spec
334
deactivate
335
336
- API_CHANGE=`git diff --name-only HEAD^ | grep "paddle/fluid/API.spec" || true`
+ # Use git diff --name-only HEAD^ may not get file changes for update commits in one PR
337
+ API_CHANGE=`echo $CHANGED_FILES | grep "paddle/fluid/API.spec" || true`
338
echo "checking API.spec change, PR: ${GIT_PR_ID}, changes: ${API_CHANGE}"
339
if [ ${API_CHANGE} ] && [ "${GIT_PR_ID}" != "" ]; then
340
# TODO: curl -H 'Authorization: token ${TOKEN}'
0 commit comments