imsobear / branch-name

GitHub Action for exporting current branch name as an environment variable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

GitHub Action for exporting current branch name as an environment variable

License:MIT License


Languages

Language:JavaScript 100.0%