Skip to content

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayamadhavareddy committed Apr 15, 2024
1 parent 5d25e15 commit 987fb0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ runs:
image: Dockerfile
env:
INPUT_PARAMS: ${{ inputs.parameters }}
INPUT_PARAMS_FILE_PATH: ${{ inputs.params-file }}
WORKSPACE_DIR: ${{ GITHUB_WORKSPACE }}
INPUT_PARAMS_FILE_PATH: ${{ inputs.params-file }}
3 changes: 2 additions & 1 deletion src/aws_ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def run(aws_parameters: dict[str, AwsParameter]):
params_file_path = os.getenv('INPUT_PARAMS_FILE_PATH')
print(f"params_file_path: {params_file_path}")
print(params_file_path)
print(f"workspace: {os.getenv('GITHUB_WORKSPACE')}")
if params_file_path is not None:
path = pathlib.PurePath(os.getenv('WORKSPACE_DIR'), 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}.items()

0 comments on commit 987fb0f

Please sign in to comment.