mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-13 12:54:30 -05:00
✨ Add the option to specify the destination path (#20)
This commit is contained in:
parent
fa24b0e3ce
commit
fade7a72bc
3 changed files with 10 additions and 7 deletions
|
|
@ -5,7 +5,8 @@ async function run() {
|
|||
try {
|
||||
const image = core.getInput('image');
|
||||
const path = core.getInput('path');
|
||||
const destination = `.extracted-${Date.now()}`;
|
||||
const destination = core.getInput('destination') || `.extracted-${Date.now()}`;
|
||||
|
||||
const create = `docker cp $(docker create ${image}):/${path} ${destination}`;
|
||||
|
||||
await exec.exec(`mkdir -p ${destination}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue