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

actions/exec: Allow timeout on running a process #1777

Open
rhysd opened this issue Jul 28, 2024 · 0 comments · May be fixed by #1778
Open

actions/exec: Allow timeout on running a process #1777

rhysd opened this issue Jul 28, 2024 · 0 comments · May be fixed by #1778
Labels
enhancement New feature or request

Comments

@rhysd
Copy link
Contributor

rhysd commented Jul 28, 2024

If your issue is relevant to this repository, please include the information below:

Describe the enhancement

Currently actions/exec's exec function does not allow timeout. So, when the command being run by the function hangs, the CI workflow will wait until the workflow is timed out. Setting timeout is useful to avoid this problem.

So please consider to allow timeout on running process with the function.

Code Snippet

await exec('some-command', ['some', 'args'], {
  timeout: 1000, // 1 second timeout
}) 

Additional information

Nothing.

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.

1 participant