Skip to content

get the branch name when in detached HEAD (e.g. when a tag is created) #595

Description

@arauchberger

Describe your idea

i'm triggering my maven-pipeline via GitHub-workflow.
when a simple commit triggers the wf, the property git.branch tells me the branch correctly (master, my_experiment, ...)
when a tag triggers the wf, we have a detached head situation and your plugin (as documented) falls back to the commit-id for the property git.banch.

Expected Behavior

property git.branch (or an additional property) should always show the branch name for the checked-out commit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions