Read YAML
This action reads yaml data from a file and outputs the result.
Inputs
-
file
Required yaml file to read from. -
key-path
Required Path of keys to the value as a JSON list.
Outputs
data
Data read from YAML file.
Example usage
name: Read YAML Data
uses: KJ002/[email protected]
id: yaml-data
with:
file: './action.yaml'
key-path: '["runs", "using"]' # Access the runs key then the using key and retuns the value.
Contributing and Local Development
Check the CONTRIBUTING guidelines for information on how to contribute to read-yaml