Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier to get command output #769

Closed
simenandre opened this issue Apr 11, 2021 · 2 comments · Fixed by #814
Closed

Easier to get command output #769

simenandre opened this issue Apr 11, 2021 · 2 comments · Fixed by #814
Labels
enhancement New feature or request

Comments

@simenandre
Copy link

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"
@simenandre simenandre added the enhancement New feature or request label Apr 11, 2021
@rcowsill
Copy link
Contributor

rcowsill commented May 7, 2021

Here's another implementation of that functionality: https://github.com/satackey/actions-exec-listener

@simenandre
Copy link
Author

Here's another implementation of that functionality: satackey/actions-exec-listener

Thank you so much for sharing that, @rcowsill!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants