You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
468 B

  1. #!/bin/bash
  2. set -euxo pipefail
  3. KUBESPRAY_NEXT_VERSION=2.$(( ${KUBESPRAY_VERSION:3:2} + 1 ))
  4. # Rebase PRs on master (or release branch) to get latest changes
  5. if [[ $CI_COMMIT_REF_NAME == pr-* ]]; then
  6. git config user.email "ci@kubespray.io"
  7. git config user.name "CI"
  8. if [[ -z "`git branch -a --list origin/release-$KUBESPRAY_NEXT_VERSION`" ]]; then
  9. git pull --rebase origin master
  10. else
  11. git pull --rebase origin release-$KUBESPRAY_NEXT_VERSION
  12. fi
  13. fi