Skip to content

Commit 9c04abc

Browse files
Filter runs by branch to tighthen the results
1 parent 17b0619 commit 9c04abc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/context.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ jobs:
2626
script: |
2727
const pr_number = context.payload.pull_request.number;
2828
const workflow_name = context.workflow;
29+
const branch_name = context.ref;
30+
const branch_name2 = context.head_ref;
31+
const branch_name3 = context.head.ref;
2932
const event_match = "pull_request";
3033
console.log(pr_number);
3134
console.log(workflow_name);
35+
console.log(branch_name);
36+
console.log(branch_name2);
37+
console.log(branch_name3);
3238
3339
if (!pr_number) {
3440
console.log("No pull request number found in context.");

0 commit comments

Comments
 (0)