2019-04-24 16:38:01 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
|
2019-06-11 02:17:05 +08:00
|
|
|
# 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 master
|
|
|
|
fi
|