Skip to content

actions-cool/actions-util

Repository files navigation

Actions Util

πŸš€ A util for Actions.

npm

πŸš€ Usage

const { checkPermission } = require('actions-util');
// or
import { checkPermission } from 'actions-util';

checkPermission(require, permission);

🎁 Export

checkPermission

checkPermission(require, permission);

Input

Params Desc Type Required Default
require Required permissions string βœ” -
permission Detector's permission string βœ” -

Output

boolean

dealStringToArr

dealStringToArr(para);

Input

Params Desc Type Required Default
para Action yml input like x1, x2, x3 string βœ” -

Output

['x1', 'x2', 'x3']

LICENSE

MIT