Skip to content

Commit

Permalink
fix: add strip
Browse files Browse the repository at this point in the history
  • Loading branch information
idubnori committed Apr 3, 2024
1 parent cf76df0 commit 86feb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ runs:
def concat_env_value(parsed_toml):
common_instructions = os.getenv('common_instructions')
for key in ei_sections:
additional_instructions = os.getenv(f"{key}.{ei_key}", '').strip() + '\n' + common_instructions
additional_instructions = (os.getenv(f"{key}.{ei_key}", '').strip() + '\n' + (common_instructions).strip()).strip()
if key in parsed_toml:
if ei_key in parsed_toml[key]:
parsed_toml[key][ei_key] = (parsed_toml[key][ei_key]).strip() + '\n' + additional_instructions
Expand Down

0 comments on commit 86feb9e

Please sign in to comment.