Skip to content

Commit

Permalink
Merge pull request #39 from c13n-io/devops/branch-naming
Browse files Browse the repository at this point in the history
Add branch naming check from global workflow
  • Loading branch information
GeorgeTsagk authored Mar 29, 2022
2 parents 9b3b554 + 2b6adc5 commit a06771c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/eslint-check.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a06771c

Please sign in to comment.