@@ -24,8 +24,8 @@ configure_gcloud_ssh_key() {
2424 chmod 600 " ${HOME} /.ssh/google_compute_engine"
2525}
2626
27- # Fetches master branch from GitHub and "resets" local changes to be relative to it,
28- # so we can diff what changed relatively to master branch.
27+ # Fetches main branch from GitHub and "resets" local changes to be relative to it,
28+ # so we can diff what changed relatively to main branch.
2929initialize_git_repo () {
3030 rm -fr .git
3131 git config --global init.defaultBranch main
@@ -35,21 +35,21 @@ initialize_git_repo() {
3535 git config user.name " ia-tests"
3636
3737 git remote add origin " https://github.com/GoogleCloudDataproc/initialization-actions.git"
38- git fetch origin master
38+ git fetch origin main
3939 # Fetch all PRs to get history for PRs created from forked repos
4040 git fetch origin +refs/pull/* /merge:refs/remotes/origin/pr/* > /dev/null 2>&1
4141
4242 git reset --hard " ${COMMIT_SHA} "
4343
44- git rebase origin/master
44+ git rebase origin/main
4545}
4646
47- # This function adds all changed files to git "index" and diffs them against master branch
47+ # This function adds all changed files to git "index" and diffs them against main branch
4848# to determine all changed files and looks for tests in directories with changed files.
4949determine_tests_to_run () {
5050 # Infer the files that changed
51- mapfile -t DELETED_BUILD_FILES < <( git diff origin/master --name-only --diff-filter=D | grep BUILD)
52- mapfile -t CHANGED_FILES < <( git diff origin/master --name-only)
51+ mapfile -t DELETED_BUILD_FILES < <( git diff origin/main --name-only --diff-filter=D | grep BUILD)
52+ mapfile -t CHANGED_FILES < <( git diff origin/main --name-only)
5353 echo " Deleted BUILD files: ${DELETED_BUILD_FILES[*]} "
5454 echo " Changed files: ${CHANGED_FILES[*]} "
5555
0 commit comments