From 73f27e28d13be839b6cdd54c2b0e876a2609f519 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Wed, 3 Apr 2024 18:25:00 +0000 Subject: [PATCH] gha: Define GH_PR_NUMBER variable in gha run k8s common script This PR defines the GH_PR_NUMBER variable in gha run k8s common script to avoid failures like unbound variable when running locally the scripts just like the GHA CI. Fixes #9408 Signed-off-by: Gabriela Cervantes --- tests/gha-run-k8s-common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gha-run-k8s-common.sh b/tests/gha-run-k8s-common.sh index d91899abfd..80ac2af023 100644 --- a/tests/gha-run-k8s-common.sh +++ b/tests/gha-run-k8s-common.sh @@ -12,6 +12,7 @@ tests_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "${tests_dir}/common.bash" K8S_TEST_HOST_TYPE="${K8S_TEST_HOST_TYPE:-small}" +GH_PR_NUMBER="${GH_PR_NUMBER:-}" function _print_instance_type() { case ${K8S_TEST_HOST_TYPE} in