Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakveerchand committed Apr 22, 2024
1 parent 279e06d commit c01f7ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/aws_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def run(aws_parameters, input_lambda_name):
input_params = os.getenv('INPUT_PARAMS')
lambda_name = os.getenv('INPUT_LAMBDA_NAME')
params_inline = parse_input_params(input_params) if input_params is not None else {}
params_from_file = {}
params_file_path = os.getenv('INPUT_PARAMS_FILE_PATH')
if params_file_path is not None and params_file_path != "":
path = pathlib.PurePath(os.getenv('GITHUB_WORKSPACE'), params_file_path)
with open(path, 'r') as f:
params_from_file = parse_input_params(f.read())
params = {**params_from_file, **params_inline}
run(params, lambda_name)
# params_from_file = {}
# params_file_path = os.getenv('INPUT_PARAMS_FILE_PATH')
# if params_file_path is not None and params_file_path != "":
# path = pathlib.PurePath(os.getenv('GITHUB_WORKSPACE'), params_file_path)
# with open(path, 'r') as f:
# params_from_file = parse_input_params(f.read())
# params = {**params_from_file, **params_inline}
# run(params, lambda_name)

0 comments on commit c01f7ac

Please sign in to comment.