Skip to content

Commit 909ad35

Browse files
committed
add missing ruyaml
1 parent 3acb207 commit 909ad35

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gateway/gateway.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ def update_actions(dummy_path: Path, actions_path: Path):
190190
actions: ActionsYAML = load_yaml(actions_path)
191191

192192
update_refs(steps, actions)
193-
gha_print(yaml.safe_dump(actions), "Generated List")
193+
yaml = ruyaml.YAML()
194+
gha_print(yaml.dump(actions), "Generated List")
194195
write_yaml(actions_path, actions)
195196

196197

@@ -227,6 +228,7 @@ def update_patterns(pattern_path: Path, list_path: Path):
227228
actions: ActionsYAML = load_yaml(list_path)
228229
patterns = create_pattern(actions)
229230
comment = f"# This file was generated from {pattern_path} by gateway/gateway.py. DO NOT UPDATE MANUALLY.\n"
231+
yaml = ruyaml.YAML()
230232
patterns_str = comment + yaml.safe_dump(patterns)
231233
gha_print(patterns_str, "Generated Patterns")
232234
write_str(pattern_path, patterns_str)
@@ -281,5 +283,6 @@ def clean_actions(actions_path: Path):
281283
"""
282284
actions: ActionsYAML = load_yaml(actions_path)
283285
remove_expired_refs(actions)
286+
yaml = ruyaml.YAML()
284287
gha_print(yaml.safe_dump(actions), "Cleaned Actions")
285288
write_yaml(actions_path, actions)

0 commit comments

Comments
 (0)