We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17b0619 commit 9c04abcCopy full SHA for 9c04abc
1 file changed
.github/workflows/context.yaml
@@ -26,9 +26,15 @@ jobs:
26
script: |
27
const pr_number = context.payload.pull_request.number;
28
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;
32
const event_match = "pull_request";
33
console.log(pr_number);
34
console.log(workflow_name);
35
+ console.log(branch_name);
36
+ console.log(branch_name2);
37
+ console.log(branch_name3);
38
39
if (!pr_number) {
40
console.log("No pull request number found in context.");
0 commit comments