Skip to content

Github Custom Action to split strings.

License

Notifications You must be signed in to change notification settings

ebrain-lab/split-by

 
 

Repository files navigation

Github Split-By Action

Actions splits strings by the given delimiter

Inputs

string

required string to be split

split-by

required string/char to be used as the delimiter to split the string.

Output

value

Object containing key value pairs

{
    _0: 'first',
    _1: 'secound'
}

Example Usage

- uses: rishabhgupta/split-by@v1
  id: split
  with:
    string: 'feat/branch-name'
    split-by: '/'
- run: | 
    echo "${{ steps.split.outputs._1}}"

About

Github Custom Action to split strings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%