Skip to content
git-branch

GitHub Action

PR Branch Name

v3.0.0 Latest version

PR Branch Name

git-branch

PR Branch Name

Sets the PR Branch Name for other steps

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PR Branch Name

uses: mdecoleman/pr-branch-name@v3.0.0

Learn more about this action in mdecoleman/pr-branch-name

Choose a version

Pull Request Branch Name

GitHub Super-Linter CI Check dist/ CodeQL Coverage

A github action that retrieves the pull request branch name and sets it in the output for other actions to use.

Usage

- uses: mdecoleman/pr-branch-name@v3.0.0
  id: vars
  with:
    repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{ steps.vars.outputs.branch }}

License

The scripts and documentation in this project are released under the MIT License