Skip to content

Commit 4ab1172

Browse files
author
Eric Swanson
authored
1 parent ed2d34f commit 4ab1172

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/conventional-commits.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ jobs:
2020
# verb: feat, fix, ...
2121
# scope: refers to the part of code being changed. E.g. " (accounts)" or " (accounts,canisters)"
2222
# !: Indicates that the PR contains a breaking change.
23-
- run: |
24-
if [[ "${{ github.event.pull_request.title }}" =~ ^(feat|fix|chore|build|ci|docs|style|refactor|perf|test)(\([-a-zA-Z0-9,]+\))?\!?\: ]]; then
23+
- env:
24+
TITLE: ${{ github.event.pull_request.title }}
25+
run: |
26+
echo "PR title: $TITLE"
27+
if [[ "$TITLE" =~ ^(feat|fix|chore|build|ci|docs|style|refactor|perf|test)(\([-a-zA-Z0-9,]+\))?\!?\: ]]; then
2528
echo pass
2629
else
2730
echo "PR title does not match conventions"
28-
echo "PR title: ${{ github.event.pull_request.title }}"
2931
exit 1
3032
fi

0 commit comments

Comments
 (0)