We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c1bca commit 88c248dCopy full SHA for 88c248d
src/LayerCache.ts
@@ -32,9 +32,17 @@ class LayerCache {
32
await this.saveImageAsUnpacked()
33
await this.separateAllLayerCaches()
34
// Todo: remove await
35
- const storeRoot = await this.storeRoot()
+ const storeRoot = this.storeRoot()
36
const storeLayers = this.storeLayers()
37
- await Promise.all([storeRoot, storeLayers])
+ try {
38
+ await Promise.all([storeRoot, storeLayers])
39
+ } catch (e) {
40
+ if (typeof e.message !== 'string' || !e.message.includes(`Cache already exists`)) {
41
+ throw e
42
+ }
43
+ core.info(`Cache already exists, key: ${this.getRootKey()}`)
44
+ core.debug(e)
45
46
}
47
48
private async saveImageAsUnpacked() {
0 commit comments