Skip to content

GitHub Action for exporting current branch name as an environment variable

License

Notifications You must be signed in to change notification settings

0xTELEPORTAL/gh-branch-name

 
 

Repository files navigation

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}

About

GitHub Action for exporting current branch name as an environment variable

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%