Skip to content

Commit 4242da5

Browse files
Filter runs by branch to tighthen the results
1 parent 17b0619 commit 4242da5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/context.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ jobs:
2626
script: |
2727
const pr_number = context.payload.pull_request.number;
2828
const workflow_name = context.workflow;
29+
const branch_name = context.ref.replace(/^refs\/heads\//, "");
30+
const branch_name2 = context.head_ref.replace(/^refs\/heads\//, "");
2931
const event_match = "pull_request";
3032
console.log(pr_number);
3133
console.log(workflow_name);
34+
console.log(branch_name);
35+
console.log(branch_name2);
3236
3337
if (!pr_number) {
3438
console.log("No pull request number found in context.");

0 commit comments

Comments
 (0)