mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
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:
committed by
Bastian Köcher
parent
f4a3056167
commit
9051945505
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user