c12s-kubespray/tests/scripts/rebase.sh
Andreas Holmsten 147ea54374 Cherry pick #4861 into release-2.10 (#4874)
* Rebase only on PRs (#4861)

* Rebase from release-2.10 branch instead of master
2019-06-12 23:06:13 -07:00

9 lines
233 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
# Rebase PRs on master to get latest changes
if [[ $CI_COMMIT_REF_NAME == pr-* ]]; then
git config user.email "ci@kubespray.io"
git config user.name "CI"
git pull --rebase origin release-2.10
fi