Attempt to delete the archive after extraction#209
Merged
joshmgross merged 1 commit intoactions:masterfrom Mar 18, 2020
henrymercer:delete-archive-after-extraction
Merged
Attempt to delete the archive after extraction#209joshmgross merged 1 commit intoactions:masterfrom henrymercer:delete-archive-after-extraction
joshmgross merged 1 commit intoactions:masterfrom
henrymercer:delete-archive-after-extraction
Conversation
This reduces storage space used once the Action has finished executing.
henrymercer
commented
Mar 10, 2020
| const cacheEntry = yield cacheHttpClient.getCacheEntry(keys); | ||
| if (!((_a = cacheEntry) === null || _a === void 0 ? void 0 : _a.archiveLocation)) { | ||
| core.info(`Cache not found for input keys: ${keys.join(", ")}.`); | ||
| core.info(`Cache not found for input keys: ${keys.join(", ")}`); |
Contributor
Author
There was a problem hiding this comment.
Note that this change was originally made in #195 but the Action wasn't recompiled.
6 tasks
1 task
1 task
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR modifies the
restorejob to attempt to delete the downloaded archive once it has been extracted. This reduces storage space used on the Actions runner once the cache Action has finished executing.This change is particularly useful for users using a large proportion of the 5GB of currently available cache space, as keeping both the archives and the unzipped content could use close to 10GB of the available 14GB of storage on GitHub-hosted Actions runners.