sumitting last 10 entries from the commit log

This commit is contained in:
Paul Rogalinski 2015-04-01 00:23:30 +02:00
parent b8d4b6a387
commit 26fa22c19f
1 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,8 @@ else
make -j2
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REVISION=$(git rev-parse HEAD)
REVISION=$(git rev-parse --short HEAD)
RECENT_COMMITS=$(git log -n 10)
TARGET_FILE=obj/cleanflight_${TARGET}
if [ -f ${TARGET_FILE}.bin ];
@ -21,7 +22,11 @@ else
exit 1
fi
curl --form "file=@${TARGET_FILE}" --form "revision=${REVISION}" --form "branch=${BRANCH}" ${PUBLISH_URL}
curl \
--form "file=@${TARGET_FILE}" \
--form "revision=${REVISION}" \
--form "branch=${BRANCH}" \
--form "recent_commits=${RECENT_COMMITS}" ${PUBLISH_URL}
else
make -j2
fi