When I use in my workflow github.ref_name
it doesn't provide me a branch name from where I triggered this workflow. I get 16/merge
. Why? When I use github.ref_type
I clearly see that my ref type is branch
so why I don't get branch name?
Also it's showing when I use $GITHUB_REF
or git symbolic-ref HEAD
(and separating refs/heads/
off). Ah and I tried github.event.push.ref
but it's not showing me anything.
How to get always branch name from where I triggered the workflow?