-
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.
fix: Remove period (
.
) from destination path (#29)
GitHub's `actions/artifact-upload` ignores dotfiles by default now (a breaking change) so this Action will not work as expected for users impacted by that change. The change here is technically breaking (as the default destination will no longer start with a `.`) but because the destination name is randomly generated, it should not impact any integrations.
- Loading branch information
Showing
8 changed files
with
46 additions
and
30 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 |
---|---|---|
|
@@ -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}`; | ||
|
||
|