Skip to content

Commit

Permalink
PR review companion to not run if nothing was uploaded in the PR text
Browse files Browse the repository at this point in the history
Fixes mdn#3786
  • Loading branch information
peterbe committed Apr 2, 2021
1 parent 41747f2 commit 6cfb2ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr-review-companion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ jobs:
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
var matchArtifacts = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "build"
})[0];
});
console.log(matchArtifacts);
console.log(matchArtifacts.length);
var matchArtifact = matchArtifacts[0];
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 6cfb2ec

Please sign in to comment.