Skip to content

Get branch name

Actions
Export branch name as environment variable
v1.0.1
Latest
Star (60)

Use branch name on GitHub actions

Convenience action for using current branch name.

Usage

name: build
on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - run: npm ci
    - uses: nelonoel/branch-name@v1.0.1
    # Use branch name for whatever purpose
    - run: echo ${BRANCH_NAME}

Get branch name is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Export branch name as environment variable
v1.0.1
Latest

Get branch name is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.