mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-13 19:00:09 -05:00
🐛 Extract contents of directory (#4)
This commit is contained in:
parent
0f83fca17f
commit
7d86f1b9ad
6 changed files with 103 additions and 59 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue