Skip to content

Commit

Permalink
Add v to release branch name and ignore develop and master
Browse files Browse the repository at this point in the history
  • Loading branch information
mcapuccini committed Mar 10, 2022
1 parent 401dce3 commit 7e5c4bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/branch-name-check.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: "branch name check"

on: push
on:
push:
branches-ignore:
- develop
- master

env:
BRANCH_REGEX: '^(develop|master|((feature|hotfix|bugfix|docs|release)\/.+)|(release\/((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)))$'
BRANCH_REGEX: '^((feature|hotfix|bugfix|docs)\/.+)|(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:
Expand Down

0 comments on commit 7e5c4bd

Please sign in to comment.