Skip to content

dangdennis/toml-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: dangdennis/toml-action@v1.0.0
id: read_toml
with:
  file: 'myfile.toml'
  field: 'package.version'
  working-directory: 'some/directory/'

You can now refer to the output in a later step using steps.read_toml.outputs.value

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%