Skip to content

split-by

Actions
Split the string by the given string
v1.0.1
Latest
Star (13)

Tags

 (1)

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}}"

split-by is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Split the string by the given string
v1.0.1
Latest

Tags

 (1)

split-by is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.