Skip to content

Commit

Permalink
adjust concat order
Browse files Browse the repository at this point in the history
  • Loading branch information
idubnori committed Apr 18, 2024
1 parent 4881584 commit 16727eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ 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).strip()).strip()
additional_instructions = (common_instructions.strip() + '\n' + os.getenv(f"{key}.{ei_key}", '').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
parsed_toml[key][ei_key] = additional_instructions + '\n' + (parsed_toml[key][ei_key]).strip()
else:
parsed_toml[key][ei_key] = additional_instructions
else:
Expand Down

0 comments on commit 16727eb

Please sign in to comment.