Skip to content

colt-1/toml-editor

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

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toml-editor

This is a Github action, you can use it to edit your toml file. Read more about those here: https://developer.github.com/actions/

Usage

workflow.yml

- name: TOML Editor V2
  uses: colathro/[email protected]
  with:
    file: "file/path/xx.toml"
    key: "a.b.c"
    value: "abc"

Arguments

All arguments are of type string.

Name Required Description
file Yes The relative path of toml file
key Yes Key need to modify
value Yes Value to set

Key Example

[params]
hello = "" # key = "params.hello"

[params.config]
appId = "" # key = "params.config.appId"

Development

Dependencies

npm install

npm i -g @vercel/ncc

Testing

yarn test

Building

ncc build index.js --license licenses.txt

After building check in dist/index.js.

About

Github action to edit toml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%