@tradeshift/actions-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@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')

Readme

Keywords

none

Package Sidebar

Install

npm i @tradeshift/actions-core

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • jesperterkelsen
  • ngunder
  • tradeshift-larsbojensen
  • wejendorp
  • kian-esmailpour
  • tradeshift-ci
  • aleksandr.elkin
  • ehats
  • tradeshift-public