How to use the @actions/exec/lib/toolrunner.argStringToArray function in @actions/exec

To help you get started, we’ve selected a few @actions/exec examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / k8s-actions / k8s-create-secret / src / run.ts View on Github external
function getGenericSecretArguments(secretName: string): string[] {
    const secretArguments = core.getInput('arguments');
    let args = ['create', 'secret', 'generic', secretName];
    args.push(...argStringToArray(secretArguments));
    return args;
}
github Azure / k8s-actions / k8s-create-secret / lib / run.js View on Github external
function getGenericSecretArguments(secretName) {
    const secretArguments = core.getInput('arguments');
    let args = ['create', 'secret', 'generic', secretName];
    args.push(...toolrunner_1.argStringToArray(secretArguments));
    return args;
}
function checkClusterContext() {