1
0
Fork 0

adding error checks

pull/1700/head
Vallie Joseph 2024-04-01 15:07:28 +00:00
parent dea3595881
commit 2c4f0f555e
2 changed files with 4 additions and 2 deletions

View File

@ -50,6 +50,7 @@ export async function createZipUploadStream(
createReadStream(file.sourcePath), createReadStream(file.sourcePath),
{name: file.destinationPath}, {name: file.destinationPath},
function (err, entry) { function (err, entry) {
core.debug(`${err}`)
if (err) reject(err) if (err) reject(err)
else resolve(entry) else resolve(entry)
} }
@ -60,6 +61,7 @@ export async function createZipUploadStream(
null, null,
{name: `${file.destinationPath}/`}, {name: `${file.destinationPath}/`},
function (err, entry) { function (err, entry) {
core.debug(`${err}`)
if (err) reject(err) if (err) reject(err)
else resolve(entry) else resolve(entry)
} }

View File

@ -1,12 +1,12 @@
{ {
"name": "@actions/attest", "name": "@actions/attest",
"version": "1.0.0", "version": "1.1.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@actions/attest", "name": "@actions/attest",
"version": "1.0.0", "version": "1.1.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.1", "@actions/core": "^1.10.1",