diff --git a/script/push-mlperf-inference-results-to-github/run.bat b/script/push-mlperf-inference-results-to-github/run.bat index bcfd791647..7800479ae9 100644 --- a/script/push-mlperf-inference-results-to-github/run.bat +++ b/script/push-mlperf-inference-results-to-github/run.bat @@ -1,18 +1,18 @@ @echo off -REM Check if CM_GIT_CHECKOUT_PATH is set -if not defined CM_GIT_CHECKOUT_PATH ( - echo "Error: CM_GIT_CHECKOUT_PATH is not set." +REM Check if CM_GIT_REPO_CHECKOUT_PATH is set +if not defined CM_GIT_REPO_CHECKOUT_PATH ( + echo "Error: CM_GIT_REPO_CHECKOUT_PATH is not set." exit /b 1 ) -cd "%CM_GIT_CHECKOUT_PATH%" +cd "%CM_GIT_REPO_CHECKOUT_PATH%" git pull git add * REM Check if the CM_MLPERF_INFERENCE_SUBMISSION_DIR variable is set if defined CM_MLPERF_INFERENCE_SUBMISSION_DIR ( - robocopy "%CM_MLPERF_INFERENCE_SUBMISSION_DIR%" "%CM_GIT_CHECKOUT_PATH%" /MIR + robocopy "%CM_MLPERF_INFERENCE_SUBMISSION_DIR%" "%CM_GIT_REPO_CHECKOUT_PATH%" /MIR git add * ) diff --git a/script/push-mlperf-inference-results-to-github/run.sh b/script/push-mlperf-inference-results-to-github/run.sh index c1d66f0278..1eb4f663e4 100644 --- a/script/push-mlperf-inference-results-to-github/run.sh +++ b/script/push-mlperf-inference-results-to-github/run.sh @@ -1,16 +1,16 @@ #!/bin/bash -# Check if CM_GIT_CHECKOUT_PATH is set -if [ -z "${CM_GIT_CHECKOUT_PATH}" ]; then - echo "Error: CM_GIT_CHECKOUT_PATH is not set." +# Check if CM_GIT_REPO_CHECKOUT_PATH is set +if [ -z "${CM_GIT_REPO_CHECKOUT_PATH}" ]; then + echo "Error: CM_GIT_REPO_CHECKOUT_PATH is not set." exit 1 fi -cd "${CM_GIT_CHECKOUT_PATH}" +cd "${CM_GIT_REPO_CHECKOUT_PATH}" git pull git add * if [[ -n ${CM_MLPERF_INFERENCE_SUBMISSION_DIR} ]]; then - rsync -avz "${CM_MLPERF_INFERENCE_SUBMISSION_DIR}/" "${CM_GIT_CHECKOUT_PATH}/" + rsync -avz "${CM_MLPERF_INFERENCE_SUBMISSION_DIR}/" "${CM_GIT_REPO_CHECKOUT_PATH}/" git add * fi test $? -eq 0 || exit $?