Skip to content

Commit eda5476

Browse files
Filter runs by branch to tighthen the results
1 parent 67f7da1 commit eda5476

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/context.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
3434
const pr_number = pr.number;
3535
const workflow_name = context.workflow;
36+
const branch_name = pr.head.ref;
3637
const event_match = "pull_request";
3738
console.log(pr_number);
3839
console.log(workflow_name);
40+
console.log(branch_name);
3941
4042
if (!pr_number) {
4143
console.log("No pull request number found in context.");
@@ -47,6 +49,7 @@ jobs:
4749
owner: context.repo.owner,
4850
repo: context.repo.repo,
4951
event: event_match,
52+
branch: branch_name,
5053
per_page: 100
5154
});
5255
// console.log(runs);

0 commit comments

Comments
 (0)