Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 536 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 536 Bytes

Branch Name Validator

A Github action that verify the current branch name

Usage

name: Coverage Check
on:
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Validate branch name
        uses: prajithp13/branch-name-validator-action@master
        with:
          branches: |
            '^main$'
            '^master$'

Inputs

Name Required Description Default
branches false Multi line Regex pattern master, main, hotix/.*