mirror of
https://github.com/gradle/actions
synced 2024-11-23 18:02:13 +00:00
Correctly handle multiline patterns for extracted entries (#393)
This commit is contained in:
parent
b4c01c399c
commit
cf8c435260
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ abstract class AbstractEntryExtractor {
|
|||
pattern: string,
|
||||
listener: CacheEntryListener
|
||||
): Promise<ExtractedCacheEntry> {
|
||||
const restoredEntry = await restoreCache([pattern], cacheKey, [], listener)
|
||||
const restoredEntry = await restoreCache(pattern.split('\n'), cacheKey, [], listener)
|
||||
if (restoredEntry) {
|
||||
return new ExtractedCacheEntry(artifactType, pattern, cacheKey)
|
||||
} else {
|
||||
|
@ -231,7 +231,7 @@ abstract class AbstractEntryExtractor {
|
|||
cacheDebug(`No change to previously restored ${artifactType}. Not saving.`)
|
||||
entryListener.markNotSaved('contents unchanged')
|
||||
} else {
|
||||
await saveCache([pattern], cacheKey, entryListener)
|
||||
await saveCache(pattern.split('\n'), cacheKey, entryListener)
|
||||
}
|
||||
|
||||
for (const file of matchingFiles) {
|
||||
|
|
Loading…
Reference in a new issue