Github doesn't displays the branch name next to the workflow run of manually run workflows

Viewed 188

Does anyone know how to view the branch name? Even on manually run workflows? Can't see any obvious settings to change it.

*** EDIT ***

Here's how it looks in most repositories (with the branch name in blue):

enter image description here

And here's the exception repo with no branch name link:

enter image description here

1 Answers

To display the current branch you're on, without the other branches listed, you can do the following:

git rev-parse --abbrev-ref HEAD

Reference: here

or with Git 2.22 and above:

git branch --show-current
Related