File tree 2 files changed +15
-2
lines changed 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -66943,7 +66943,13 @@ async function restoreAsdfCache() {
66943
66943
cacheKeyPrefix
66944
66944
];
66945
66945
core3.debug(`Restoring ${paths.join(", ")} from cache with key "${cacheKey}" using restore keys "${restoreKeys.join(", ")}"`);
66946
- return cache.restoreCache(paths, cacheKey, restoreKeys);
66946
+ const foundCacheKey = await cache.restoreCache(paths, cacheKey, restoreKeys);
66947
+ if (foundCacheKey) {
66948
+ core3.info(`Cache restored with key "${foundCacheKey}"`);
66949
+ } else {
66950
+ core3.info(`No cache found with key "${cacheKey}, "${restoreKeys.join(", ")}"`);
66951
+ }
66952
+ return foundCacheKey;
66947
66953
}
66948
66954
66949
66955
// src/install/index.ts
Original file line number Diff line number Diff line change @@ -45,7 +45,14 @@ export async function restoreAsdfCache() {
45
45
] ;
46
46
47
47
core . debug ( `Restoring ${ paths . join ( ', ' ) } from cache with key "${ cacheKey } " using restore keys "${ restoreKeys . join ( ', ' ) } "` ) ;
48
- return cache . restoreCache ( paths , cacheKey , restoreKeys ) ;
48
+ const foundCacheKey = await cache . restoreCache ( paths , cacheKey , restoreKeys ) ;
49
+ if ( foundCacheKey ) {
50
+ core . info ( `Cache restored with key "${ foundCacheKey } "` ) ;
51
+ } else {
52
+ core . info ( `No cache found with key "${ cacheKey } , "${ restoreKeys . join ( ', ' ) } "` ) ;
53
+ }
54
+
55
+ return foundCacheKey ;
49
56
}
50
57
51
58
export async function saveAsdfCache ( ) {
You can’t perform that action at this time.
0 commit comments