@ghagen/ghagen
YAML serialization and raw value escape hatch.
Functions
Section titled “Functions”| Function | Description |
|---|---|
|
Create a Raw value that bypasses type constraints. |
|
|
Serialize a workflow or action model to a YAML string. Keys are emitted in canonical order, comments are attached, and multiline strings use block-literal style. A header comment identifying the generating tool is prepended by default. Example |
|
|
Serialize a model to a YAML file. Creates any intermediate directories that do not yet exist and writes the YAML output synchronously. This is a convenience wrapper around toYaml for the common “write to disk” use case. Example |