mirror of https://github.com/actions/toolkit
adding error checks
parent
dea3595881
commit
2c4f0f555e
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue