mirror of https://github.com/actions/toolkit
Lint fixes
parent
ea4bf4810a
commit
5e9ef8532f
|
@ -524,9 +524,7 @@ async function saveCachev2(
|
||||||
|
|
||||||
const finalizeResponse: FinalizeCacheEntryUploadResponse =
|
const finalizeResponse: FinalizeCacheEntryUploadResponse =
|
||||||
await twirpClient.FinalizeCacheEntryUpload(finalizeRequest)
|
await twirpClient.FinalizeCacheEntryUpload(finalizeRequest)
|
||||||
core.debug(
|
core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`)
|
||||||
`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`
|
|
||||||
)
|
|
||||||
|
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|
|
@ -17,7 +17,9 @@ export async function DownloadCacheFile(
|
||||||
const blobClient: BlobClient = new BlobClient(signedUploadURL)
|
const blobClient: BlobClient = new BlobClient(signedUploadURL)
|
||||||
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
|
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
|
||||||
|
|
||||||
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`)
|
core.debug(
|
||||||
|
`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`
|
||||||
|
)
|
||||||
|
|
||||||
return blockBlobClient.downloadToFile(
|
return blockBlobClient.downloadToFile(
|
||||||
archivePath,
|
archivePath,
|
||||||
|
|
|
@ -19,7 +19,9 @@ export async function UploadCacheFile(
|
||||||
const blobClient: BlobClient = new BlobClient(signedUploadURL)
|
const blobClient: BlobClient = new BlobClient(signedUploadURL)
|
||||||
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
|
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
|
||||||
|
|
||||||
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`)
|
core.debug(
|
||||||
|
`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`
|
||||||
|
)
|
||||||
|
|
||||||
return blockBlobClient.uploadFile(archivePath, uploadOptions)
|
return blockBlobClient.uploadFile(archivePath, uploadOptions)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue