From 2c4f0f555e3d3adda9b45907a9ebdd1720cc32ed Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Mon, 1 Apr 2024 15:07:28 +0000 Subject: [PATCH] adding error checks --- packages/artifact/src/internal/upload/zip.ts | 2 ++ packages/attest/package-lock.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index f62d5603..022330a5 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -50,6 +50,7 @@ export async function createZipUploadStream( createReadStream(file.sourcePath), {name: file.destinationPath}, function (err, entry) { + core.debug(`${err}`) if (err) reject(err) else resolve(entry) } @@ -60,6 +61,7 @@ export async function createZipUploadStream( null, {name: `${file.destinationPath}/`}, function (err, entry) { + core.debug(`${err}`) if (err) reject(err) else resolve(entry) } diff --git a/packages/attest/package-lock.json b/packages/attest/package-lock.json index f1c53771..949dce3e 100644 --- a/packages/attest/package-lock.json +++ b/packages/attest/package-lock.json @@ -1,12 +1,12 @@ { "name": "@actions/attest", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@actions/attest", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1",