Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
zap-off

GitHub Action

split-by

v1.0.0

split-by

zap-off

split-by

Split the string by the given string

Installation

Copy and paste the following snippet into your .yml file.

              

- name: split-by

uses: rishabhgupta/[email protected]

Learn more about this action in rishabhgupta/split-by

Choose a version

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

Array of strings.

Example Usage

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