Skip to content

little-bear-labs/action-get-branch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get branch name action

This action gets the branch name from a workflow triggered by a pull_request

Outputs

branch

The name of the current git branch

Example usage

on: pull_request
...
    steps:
    - id: get_branch
      uses: ConduitVC/action-get-branch@master
    
    - run: echo "Branch name is ${{ steps.get_branch.outputs.branch }}"