Skip to content

Commit

Permalink
archiveArtifact error fixed (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginxo authored Aug 26, 2020
1 parent 641353f commit 190c370
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22901,6 +22901,7 @@ async function archiveArtifacts(workflowInformationArray) {
.map(promiseResult => promiseResult.value || promiseResult.reason)
.filter(
uploadResponse =>
uploadResponse &&
uploadResponse.artifactItems &&
uploadResponse.artifactItems.length > 0
);
Expand All @@ -22912,7 +22913,9 @@ async function archiveArtifacts(workflowInformationArray) {
.map(promiseResult => promiseResult.reason)
.filter(
uploadResponse =>
uploadResponse.failedItems && uploadResponse.failedItems.length > 0
uploadResponse &&
uploadResponse.failedItems &&
uploadResponse.failedItems.length > 0
);
const failedFiles = failureUploadResponses.flatMap(
uploadResponse => uploadResponse.failedItems
Expand Down
5 changes: 4 additions & 1 deletion src/lib/build-chain-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ async function archiveArtifacts(workflowInformationArray) {
.map(promiseResult => promiseResult.value || promiseResult.reason)
.filter(
uploadResponse =>
uploadResponse &&
uploadResponse.artifactItems &&
uploadResponse.artifactItems.length > 0
);
Expand All @@ -132,7 +133,9 @@ async function archiveArtifacts(workflowInformationArray) {
.map(promiseResult => promiseResult.reason)
.filter(
uploadResponse =>
uploadResponse.failedItems && uploadResponse.failedItems.length > 0
uploadResponse &&
uploadResponse.failedItems &&
uploadResponse.failedItems.length > 0
);
const failedFiles = failureUploadResponses.flatMap(
uploadResponse => uploadResponse.failedItems
Expand Down

0 comments on commit 190c370

Please sign in to comment.