🐛 Extract contents of directory (#4)

This commit is contained in:
Samuel Ryan 2020-09-06 18:47:06 +01:00 committed by GitHub
parent 0f83fca17f
commit 7d86f1b9ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 103 additions and 59 deletions

View file

@ -8,6 +8,7 @@ async function run() {
const destination = `.extracted-${Date.now()}`;
const create = `docker cp $(docker create ${image}):/${path} ${destination}`;
await exec.exec(`mkdir -p ${destination}`);
await exec.exec(`/bin/bash -c "${create}"`, []);
core.setOutput('destination', destination);