diff --git a/.github/bin/minikube/test-latest-olm.sh b/.github/bin/minikube/test-latest-olm.sh index b58f6baba..f391ad459 100755 --- a/.github/bin/minikube/test-latest-olm.sh +++ b/.github/bin/minikube/test-latest-olm.sh @@ -11,7 +11,8 @@ set -e set -x -export OPERATOR_REPO=$(dirname $(dirname $(dirname $(dirname $(readlink -f "${BASH_SOURCE[0]}"))))) +# Get absolute path for root repo directory from github actions context: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions +export OPERATOR_REPO="${GITHUB_WORKSPACE}" source "${OPERATOR_REPO}"/.github/bin/common.sh # Stop execution on any error diff --git a/.github/bin/minikube/test-latest-operator-singlehost-gateway.sh b/.github/bin/minikube/test-latest-operator-singlehost-gateway.sh index 03e1ea2bf..83ea82ce4 100755 --- a/.github/bin/minikube/test-latest-operator-singlehost-gateway.sh +++ b/.github/bin/minikube/test-latest-operator-singlehost-gateway.sh @@ -14,7 +14,8 @@ set -e set -x set -u -export OPERATOR_REPO=$(dirname $(dirname $(dirname $(dirname $(readlink -f "${BASH_SOURCE[0]}"))))) +# Get absolute path for root repo directory from github actions context: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions +export OPERATOR_REPO="${GITHUB_WORKSPACE}" source "${OPERATOR_REPO}"/.github/bin/common.sh # Stop execution on any error diff --git a/.github/bin/minikube/test-latest-operator-singlehost-native.sh b/.github/bin/minikube/test-latest-operator-singlehost-native.sh index 0e41d6d68..d90239617 100755 --- a/.github/bin/minikube/test-latest-operator-singlehost-native.sh +++ b/.github/bin/minikube/test-latest-operator-singlehost-native.sh @@ -13,7 +13,8 @@ set -e set -x -export OPERATOR_REPO=$(dirname $(dirname $(dirname $(dirname $(readlink -f "${BASH_SOURCE[0]}"))))) +# Get absolute path for root repo directory from github actions context: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions +export OPERATOR_REPO="${GITHUB_WORKSPACE}" source "${OPERATOR_REPO}"/.github/bin/common.sh # Stop execution on any error diff --git a/.github/bin/minikube/test-update-olm.sh b/.github/bin/minikube/test-update-olm.sh index 3774c6a77..9d2ccd32c 100755 --- a/.github/bin/minikube/test-update-olm.sh +++ b/.github/bin/minikube/test-update-olm.sh @@ -13,7 +13,8 @@ set -e set -x -export OPERATOR_REPO=$(dirname $(dirname $(dirname $(dirname $(readlink -f "${BASH_SOURCE[0]}"))))) +# Get absolute path for root repo directory from github actions context: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions +export OPERATOR_REPO="${GITHUB_WORKSPACE}" source "${OPERATOR_REPO}"/.github/bin/common.sh # Stop execution on any error diff --git a/.github/bin/minishift/test-latest-operator.sh b/.github/bin/minishift/test-latest-operator.sh index 3b2155c2f..baccfd321 100755 --- a/.github/bin/minishift/test-latest-operator.sh +++ b/.github/bin/minishift/test-latest-operator.sh @@ -13,7 +13,8 @@ set -e set -x -export OPERATOR_REPO=$(dirname $(dirname $(dirname $(dirname "${BASH_SOURCE[0]}")))) +# Get absolute path for root repo directory from github actions context: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions +export OPERATOR_REPO="${GITHUB_WORKSPACE}" source "${OPERATOR_REPO}"/.github/bin/common.sh # Stop execution on any error diff --git a/.github/bin/minishift/test-update-operator.sh b/.github/bin/minishift/test-update-operator.sh index ce7bad60f..0c0d94dd2 100755 --- a/.github/bin/minishift/test-update-operator.sh +++ b/.github/bin/minishift/test-update-operator.sh @@ -13,7 +13,8 @@ set -e set -x -export OPERATOR_REPO=$(dirname $(dirname $(dirname $(dirname "${BASH_SOURCE[0]}")))) +# Get absolute path for root repo directory from github actions context: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions +export OPERATOR_REPO="${GITHUB_WORKSPACE}" source "${OPERATOR_REPO}"/.github/bin/common.sh # Stop execution on any error