From 2b6adc57fc96bf8fae01cb33f54db3e5a90754a7 Mon Sep 17 00:00:00 2001 From: Christos Arvanitis Date: Fri, 25 Mar 2022 21:55:15 +0100 Subject: [PATCH] Add branch naming check from global workflow --- .github/workflows/eslint-check.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/eslint-check.yml b/.github/workflows/eslint-check.yml index 3065b44..ae339c6 100644 --- a/.github/workflows/eslint-check.yml +++ b/.github/workflows/eslint-check.yml @@ -1,12 +1,24 @@ -name: ESLint Check +name: Pull Request workflow on: pull_request: branches: - develop jobs: + branch_naming: + runs-on: ubuntu-20.04 + steps: + - name: Check branch naming + uses: deepakputhraya/action-branch-name@master + with: + regex: '([a-z])+\/([a-z][a-z-0-9]*[a-z0-9])' + allowed_prefixes: 'feat,fix,devops,bump' + ignore: develop + min_length: 5 + max_length: 30 lint: runs-on: ubuntu-20.04 + needs: branch_naming steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2