GitHub Action
Get branch name
v1.0.1
Latest version
Convenience action for using current branch name.
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}