Skip to content

Commit 0014629

Browse files
committed
testing
1 parent 5d22ca3 commit 0014629

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- '**'
7+
delete:
78

89
jobs:
910
build_and_push:

src/LayerCache.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class LayerCache {
2727
}
2828

2929
async store(key: string) {
30-
await this.saveImageAsUnpacked()
3130
this.originalKeyToStore = key
32-
// Todo: remove await
31+
await this.saveImageAsUnpacked()
3332
await this.separateAllLayerCaches()
33+
// Todo: remove await
3434
const storeRoot = await this.storeRoot()
3535
const storeLayers = this.storeLayers()
3636
await Promise.all([storeRoot, storeLayers])
@@ -100,7 +100,8 @@ class LayerCache {
100100

101101
async restore(key: string, restoreKeys?: string[]) {
102102
this.originalKeyToStore = key
103-
const hasRestoredRootCache = await this.restoreRoot(restoreKeys)
103+
const restoreKeysIncludedRootKey = [key, ...(restoreKeys !== undefined ? restoreKeys : [])]
104+
const hasRestoredRootCache = await this.restoreRoot(restoreKeysIncludedRootKey)
104105
if (!hasRestoredRootCache) {
105106
core.info(`Root cache could not be found. aborting.`)
106107
return false

0 commit comments

Comments
 (0)