Skip to content

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

@arauchberger

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions