News for hackers. Stuff that matters.
Re:The Pain That Is GitHub Actions by fireflash38 on Friday March 21, 2025 @10:14AM (#43435966)
JSON is valid YAML.

YAML has comments. YAML is easily & trivially written by humans. JSON is easily & trivially written by code.

My lesson learned here? When generating YAML, instead generate JSON. If it's meant to be read and updated by humans, use something that can communicate to the humans (comments). And don't use YAML as a data interchange format.

There are no comments on this comment yet.