How to display the branch where the action is manually triggered?

For automatically triggered action, it shows the branch name in the action list. But for manually triggered action, it’s empty. How to display the branch name?