-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Package action as
dist
with latest changes
- Loading branch information
1 parent
b2bea73
commit f977801
Showing
9 changed files
with
57 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1091,7 +1091,17 @@ async function run() { | |
try { | ||
const image = core.getInput('image'); | ||
const path = core.getInput('path'); | ||
const destination = core.getInput('destination') || `.extracted-${Date.now()}`; | ||
const destination = core.getInput('destination') || `extracted-${Date.now()}`; | ||
|
||
if (!core.getInput('destination')) { | ||
core.notice([ | ||
'As you did not specify a docker extract destination, the default is being used.', | ||
'As of shrink/[email protected] the default does not include a dot prefix.', | ||
`v3.0.0: ".${destination}", v3.0.1: "${destination}"`, | ||
'See https://github.com/shrink/actions-docker-extract/issues/28 for context.', | ||
'No action is required unless this Workflow depends upon the dot prefix.', | ||
].join(' ')); | ||
} | ||
|
||
const create = `docker cp $(docker create ${image}):/${path} ${destination}`; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,17 @@ async function run() { | |
try { | ||
const image = core.getInput('image'); | ||
const path = core.getInput('path'); | ||
const destination = core.getInput('destination') || `.extracted-${Date.now()}`; | ||
const destination = core.getInput('destination') || `extracted-${Date.now()}`; | ||
|
||
if (!core.getInput('destination')) { | ||
core.notice([ | ||
'As you did not specify a docker extract destination, the default is being used.', | ||
'As of shrink/[email protected] the default does not include a dot prefix.', | ||
`v3.0.0: ".${destination}", v3.0.1: "${destination}"`, | ||
'See https://github.com/shrink/actions-docker-extract/issues/28 for context.', | ||
'No action is required unless this Workflow depends upon the dot prefix.', | ||
].join(' ')); | ||
} | ||
|
||
const create = `docker cp $(docker create ${image}):/${path} ${destination}`; | ||
|
||
|