From 7c49ae77af46ff02bcf158c2a00384b614f9d21f Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Thu, 22 Aug 2024 15:27:57 -0500 Subject: [PATCH] fix: adds clearer parameter setting for region --- src/gha_runner/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gha_runner/__main__.py b/src/gha_runner/__main__.py index b05c91a..0b450fa 100644 --- a/src/gha_runner/__main__.py +++ b/src/gha_runner/__main__.py @@ -31,7 +31,7 @@ def parse_aws_params() -> dict: params = _env_parse_helper(params, "INPUT_AWS_IAM_ROLE", "iam_role") params = _env_parse_helper(params, "INPUT_AWS_TAGS", "tags", is_json=True) region_name = os.environ.get("INPUT_AWS_REGION_NAME") - if region_name is not None: + if region_name is not None or region_name != "": params["region_name"] = region_name home_dir = os.environ.get("INPUT_AWS_HOME_DIR") if home_dir is not None: