Skip to content

Docs/SK-000 | Update main readme (#665) #1431

Docs/SK-000 | Update main readme (#665)

Docs/SK-000 | Update main readme (#665) #1431

name: "branch name check"
on:
push:
branches-ignore:
- develop
- master
env:
BRANCH_REGEX: '^((feature|github|dependabot|hotfix|bugfix|fix|bug|docs|refactor)\/.+)|(release\/v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?))$'
jobs:
branch-name-check:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: branch name check
run: |
git rev-parse --abbrev-ref HEAD | grep -P "$BRANCH_REGEX"