Skip to content

Commit

Permalink
Fix usage of get_branch_to_checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Rosiek committed Oct 5, 2020
1 parent b212889 commit 15bf216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function set_up_github() {
git remote add origin-repo "https://${token}@github.com/SumoLogic/sumologic-kubernetes-collection.git" > /dev/null 2>&1
git fetch --unshallow origin-repo

readonly branch_to_checkout="$(get_branch_to_checkout)"
readonly branch="$(get_branch_to_checkout)"
echo "Checking out the ${branch} branch..."
git checkout "${branch}"
}
Expand Down Expand Up @@ -251,7 +251,7 @@ echo "Running tests"

# Set up Github
if [ -n "$GITHUB_TOKEN" ]; then
set_up_github "${GITHUB_TOKEN}" "${branch_to_checkout}"
set_up_github "${GITHUB_TOKEN}" "$(get_branch_to_checkout)"
fi

# Check for invalid changes to generated yaml files (non-Tag builds)
Expand Down

0 comments on commit 15bf216

Please sign in to comment.