Skip to content

Commit

Permalink
Fix array indexing, more logging (#486)
Browse files Browse the repository at this point in the history
b/290997541
  • Loading branch information
oxve committed Jul 18, 2023
1 parent e179bac commit 9e87aaa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/unit_test_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,20 @@ jobs:
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
console.log(allArtifacts);
let matchArtifacts = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "unit-test-results"
});
if (matchArtifact.length == 0) {
console.log(matchArtifacts)
if (matchArtifacts.length == 0) {
// No reports were uploaded.
console.log('No unit test reports were uploaded');
return false;
}
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
artifact_id: matchArtifacts[0].id,
archive_format: 'zip',
});
let fs = require('fs');
Expand Down

0 comments on commit 9e87aaa

Please sign in to comment.