A simple action to read a single field from a TOML file and output the value stored in that field.
Required The TOML file to read from.
Required The field inside the TOML file to read. Can possibly be a nested field, using the parent.child
notation.
The value stored inside file
at key field
.
uses: SebRollen/toml-action@v1.0.0
id: read_toml
with:
file: 'myfile.toml'
field: 'package.version'
You can now refer to the output in a later step using steps.read_toml.outputs.value