mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-28 12:48:04 +08:00
Add debug message for uploadResponse
This commit is contained in:
2
packages/cache/__tests__/saveCacheV2.test.ts
vendored
2
packages/cache/__tests__/saveCacheV2.test.ts
vendored
@@ -56,7 +56,7 @@ test('save with missing input should fail', async () => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('save with large cache outputs should fail using v2 saveCache', async () => {
|
test('save with large cache outputs should fail using', async () => {
|
||||||
const filePath = 'node_modules'
|
const filePath = 'node_modules'
|
||||||
const primaryKey = 'Linux-node-bb828da54c148048dd17899ba9fda624811cfb43'
|
const primaryKey = 'Linux-node-bb828da54c148048dd17899ba9fda624811cfb43'
|
||||||
const cachePaths = [path.resolve(filePath)]
|
const cachePaths = [path.resolve(filePath)]
|
||||||
|
|||||||
3
packages/cache/src/cache.ts
vendored
3
packages/cache/src/cache.ts
vendored
@@ -518,7 +518,8 @@ async function saveCacheV2(
|
|||||||
}
|
}
|
||||||
|
|
||||||
core.debug(`Attempting to upload cache located at: ${archivePath}`)
|
core.debug(`Attempting to upload cache located at: ${archivePath}`)
|
||||||
await uploadCacheFile(response.signedUploadUrl, archivePath)
|
const uploadResponse = await uploadCacheFile(response.signedUploadUrl, archivePath)
|
||||||
|
core.debug(`Download response status: ${uploadResponse._response.status}`)
|
||||||
|
|
||||||
const finalizeRequest: FinalizeCacheEntryUploadRequest = {
|
const finalizeRequest: FinalizeCacheEntryUploadRequest = {
|
||||||
key,
|
key,
|
||||||
|
|||||||
Reference in New Issue
Block a user