-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unable to mount docker to $(pwd) [exec] #490
Comments
TiagoGouvea
changed the title
Unable to mount docker to $(pwd)
Unable to mount docker to $(pwd) [exec]
Jun 3, 2020
It took me a while to find this issue, but it seems that let cmd = 'pwd';
await exec.exec(cmd); // outputs e.g. “/home/runner/work/repo”
cmd = 'echo $(pwd)';
await exec.exec(cmd); // outputs “$(pwd)” |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When mounting docker to
$(pwd)
withexec
, the action failed and I got:Command called:
ℹ️ Running the same command using
child_process.execSync
works. Example:To Reproduce
Steps to reproduce the behavior:
await exec.exec("docker run -v $(pwd):/tmp tiagogouvea/dpl:v1.10.15");
Expected behavior
@actions/exec
work likechild_process/execSync
.Desktop (please complete the following information):
runs-on: ubuntu-latest
The text was updated successfully, but these errors were encountered: