Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

Normalize branch name

v0.1.0

Normalize branch name

terminal

Normalize branch name

Normalizes the branch into an

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Normalize branch name

uses: Slidem/[email protected]

Learn more about this action in Slidem/branch-name-normalizer

Choose a version

Branch name normalizer

Simple action that normalizez the current branch name into a string with only lowercase alphanumerical values, separated by hiphens. Example: For the branch name: Alex/A-Simple-pr. Output: alex-a-simple-pr

Inputs:

  • branch_name:
    • default: $GITHUB_HEAD_REF
    • required: false
  • max_length:
    • default: 40
    • required: false

Output:

  • normalized