We need to get the name of the branch to which CHANGELOG.md was pushed.
For now, it looks as though GITHUB_REF_NAME is that name. But don't
trust it - first, check that it is main or master. If not, then use
a couple of other methods to determine what is the push branch.
We need to get the name of the branch to which CHANGELOG.md was pushed. For now, it looks as though
GITHUB_REF_NAME
is that name. But don't trust it - first, check that it ismain
ormaster
. If not, then use a couple of other methods to determine what is the push branch.Signed-off-by: Rich Megginson rmeggins@redhat.com