branch-name icon indicating copy to clipboard operation
branch-name copied to clipboard

Properly determine branch name for pull_request and push events

Open brbrr opened this issue 3 years ago • 1 comments

process.env.GITHUB_REF.split('/').slice(2).join('/') does not work for a pull_request event.

The suggested approach should cover both push and pull_request events

brbrr avatar Dec 08 '20 12:12 brbrr

Here, use this action https://github.com/EthanSK/git-branch-name-action

EthanSK avatar Apr 17 '21 18:04 EthanSK