mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
[ci] cargo-check-benches against different base branches (#12557)
This commit is contained in:
committed by
GitHub
parent
adccdd500b
commit
86744b6b16
@@ -68,10 +68,12 @@ cargo-check-benches:
|
||||
- !reference [.rusty-cachier, before_script]
|
||||
- !reference [.pipeline-stopper-vars, script]
|
||||
# merges in the master branch on PRs
|
||||
- |
|
||||
export BASE=$(curl -s -H "Authorization: Bearer ${GITHUB_PR_TOKEN}" https://api.github.com/repos/paritytech/substrate/pulls/${$CI_COMMIT_REF_NAME} | jq .base.ref)
|
||||
- if [ $CI_COMMIT_REF_NAME != "master" ]; then
|
||||
git fetch origin +master:master;
|
||||
git fetch origin +${BASE}:${BASE};
|
||||
git fetch origin +$CI_COMMIT_REF_NAME:$CI_COMMIT_REF_NAME;
|
||||
git checkout master;
|
||||
git checkout ${BASE};
|
||||
git config user.email "ci@gitlab.parity.io";
|
||||
git merge $CI_COMMIT_REF_NAME --verbose --no-edit;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user