Skip to content

Easier to get command output #769

Description

@simenandre

Describe the enhancement

There are a few Github Actions that require the command output, like docker/build-push-action, bjerkio/kopier and pulumi/action.

I've personally added this functionality twice so far, so I thought it might be something we should consider adding to @actions/exec directly?

Code Snippet

import { getCommandOutput } from '@actions/exec';

const output = await getCommandOutput('echo', ['hello', 'world']);

// output = "hello world"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions