• JavaScript 100%
Find a file
2024-04-05 09:35:50 -04:00
node_modules dep: switch to @iarna/toml over toml 2022-10-29 16:48:57 -04:00
action.yml update to node 20 2024-01-27 11:55:36 -05:00
index.js dep: switch to @iarna/toml over toml 2022-10-29 16:48:57 -04:00
package-lock.json dep: switch to @iarna/toml over toml 2022-10-29 16:48:57 -04:00
package.json dep: switch to @iarna/toml over toml 2022-10-29 16:48:57 -04:00
README.md Update README with latest version 2024-04-05 09:35:50 -04:00

Read TOML

A simple action to read a single field from a TOML file and output the value stored in that field.

Inputs

file

Required The TOML file to read from.

field

Required The field inside the TOML file to read. Can possibly be a nested field, using the parent.child notation.

Outputs

value

The value stored inside file at key field.

Example usage

uses: SebRollen/toml-action@v1.2.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