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

nelonoel/branch-name

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

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/[email protected]
    # Use branch name for whatever purpose
    - run: echo ${BRANCH_NAME}

About

GitHub Action for exporting current branch name as an environment variable

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •