Skip to content

Commit

Permalink
testing 10
Browse files Browse the repository at this point in the history
  • Loading branch information
asucrews authored Jul 3, 2024
1 parent 88e07a7 commit 621eccb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,3 @@ action:

mode: single
max_exceeded: silent

11 changes: 8 additions & 3 deletions scripts/yaml_to_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ def yaml_to_markdown(yaml_file, markdown_file):
# Handle other types of actions if necessary
pass

f.write("\n## Mode\n")
f.write(f"- **Mode**: {data['mode']}\n")
f.write(f"- **Max Exceeded**: {data['max_exceeded']}\n")
# Make mode optional
mode = data.get('mode', 'Not specified')
f.write(f"\n## Mode\n")
f.write(f"- **Mode**: {mode}\n")

# Handle max_exceeded if present
max_exceeded = data.get('max_exceeded', 'Not specified')
f.write(f"- **Max Exceeded**: {max_exceeded}\n")

if __name__ == "__main__":
yaml_file = sys.argv[1]
Expand Down

0 comments on commit 621eccb

Please sign in to comment.