Skip to content

Commit

Permalink
chore(ci): check on branch name 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-vandaele committed Aug 13, 2024
1 parent 6b1cdbb commit 07a93e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/BRANCH_NAME_CHECK_ON_PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- name: Check if branch name follows conventional commit regex
run: |
BRANCH_REGEX='^(feat|fix|docs|style|refactor|perf|test|chore)\(?.+\)?: .+$'
echo ${{steps.extract_branch.outputs.branch}}
if [[ "${{ steps.extract_branch.outputs.branch }}" =~ $BRANCH_REGEX ]]; then
echo "Branch name follows the conventional commit format."
else
Expand Down

0 comments on commit 07a93e9

Please sign in to comment.