Skip to content

Commit 458baf6

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/context.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,15 @@ jobs:
3333
3434
const pr_number = pr.number;
3535
const workflow_name = context.workflow;
36+
const branch_name = context.ref;
37+
const branch_name2 = context.head_ref;
38+
const branch_name3 = pr.head.ref;
3639
const event_match = "pull_request";
3740
console.log(pr_number);
3841
console.log(workflow_name);
42+
console.log(branch_name);
43+
console.log(branch_name2);
44+
console.log(branch_name3);
3945
4046
if (!pr_number) {
4147
console.log("No pull request number found in context.");

0 commit comments

Comments
 (0)