Browse Source

Rebase only on PRs (#4861)

pull/4594/head
Maxime Guyot 5 years ago
committed by Kubernetes Prow Robot
parent
commit
14141ec137
1 changed files with 6 additions and 4 deletions
  1. 10
      tests/scripts/rebase.sh

10
tests/scripts/rebase.sh

@ -1,7 +1,9 @@
#!/bin/bash
set -euxo pipefail
# Rebase on master to get latest changes
git config user.email "ci@kubespray.io"
git config user.name "CI"
git pull --rebase origin master
# 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
Loading…
Cancel
Save