File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments