ci: increase git cloning depth to 100 (#4481)

* ci: increase git cloning depth to 100

* check_runtime: verify shallow git clones to contain origin/master

* check_runtime: fetch master branch
This commit is contained in:
gabriel klawitter
2019-12-24 03:43:05 +09:00
committed by Bastian Köcher
parent f4a3056167
commit 9051945505
2 changed files with 10 additions and 1 deletions
@@ -27,6 +27,15 @@ github_label () {
git fetch --depth=${GIT_DEPTH:-100} origin master
# check if master is part of this checkout
if ! git log -n 1 origin/master
then
echo "unable to check for runtime changes: checkout does not contain origin/master branch"
exit 3
fi
# check if the wasm sources changed
if ! git diff --name-only origin/master...${CI_COMMIT_SHA} \
| grep -q -e '^bin/node/src/runtime' -e '^frame/' -e '^primitives/sr-' | grep -v -e '^primitives/sr-arithmetic/fuzzer'