This action gets the branch name from a workflow triggered by a pull_request
The name of the current git branch
on: pull_request
...
steps:
- id: get_branch
uses: ConduitVC/action-get-branch@master
- run: echo "Branch name is ${{ steps.get_branch.outputs.branch }}"