diff --git a/integration-tests/scripts/buildTests b/integration-tests/scripts/buildTests index 80c8cfd56..075a4bb6e 100755 --- a/integration-tests/scripts/buildTests +++ b/integration-tests/scripts/buildTests @@ -10,6 +10,14 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) helm repo update +if [ -n "$2" ]; then + temp2="${2%\"}" + github_token="${temp2#\"}" +fi + +git config --global url."https://x-access-token:${{ github_token }}@github.com/".insteadOf "https://github.com/" +go env -w GOPRIVATE=github.com/smartcontractkit/* + cd "$SCRIPT_DIR"/../../ || exit 1 # integration prep @@ -21,15 +29,6 @@ cd "$SCRIPT_DIR"/../ || exit 1 temp="${1%\"}" tosplit="${temp#\"}" -if [ -n "$2" ]; then - temp2="${2%\"}" - github_token="${temp2#\"}" -fi - -echo "Hsdfpisjdfiosjdfiosdjf" -git config --global url."https://x-access-token:${{ github_token }}@github.com/".insteadOf "https://github.com/" -go env -w GOPRIVATE=github.com/smartcontractkit/* - # find the suite name OIFS=$IFS IFS=' '