sumitting last 10 entries from the commit log
This commit is contained in:
parent
b8d4b6a387
commit
26fa22c19f
|
@ -7,7 +7,8 @@ else
|
||||||
make -j2
|
make -j2
|
||||||
|
|
||||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
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}
|
TARGET_FILE=obj/cleanflight_${TARGET}
|
||||||
|
|
||||||
if [ -f ${TARGET_FILE}.bin ];
|
if [ -f ${TARGET_FILE}.bin ];
|
||||||
|
@ -21,7 +22,11 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
else
|
||||||
make -j2
|
make -j2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue