I am now designing the CICD pipeline and planned to trigger by tag and the source branch name would be needed as input.
The ${{ github.ref_name }}
shows the source branch when it is a commit, but it shows the tag name when it is a tag creation. I know a tag is from a specific commit, and a commit is from a branch. I am wondering if there's any way to retrieve the source branch from tag directly, or commit from a tag then source branch from that commit.
Thanks.