1.0.1 • Published 3 years ago

@tradeshift/actions-core v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@tradeshift/actions-core

Core action utility functions

Usage

getInputList(inputName: string)

This gets the given input name and parses it as a list

import * as core from '@tradeshift/actions-core'

/*

uses: ...
with:
  my-input: |
    list-item-1
    list-item-2
    list-item-3

or

uses: ...
with:
  my-input: list-item-1,list-item-2,list-item-3
*/

const inputs: string[] = getInputList('my-input')
1.0.1

3 years ago

1.0.0

3 years ago

1.1.0-alpha.0

3 years ago