Get branch name
ActionsTags
(2)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}
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.