File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -38,19 +38,14 @@ jobs:
3838 - name : Check for breaking change
3939 id : check
4040 run : |
41- msg="${{ steps.message.outputs.message }}"
42- if echo "$msg" | grep -qE "BREAKING CHANGE|^[a-z]+\(.*\)!:"; then
43- echo "breaking=true" >> $GITHUB_OUTPUT
44- else
45- echo "breaking=false" >> $GITHUB_OUTPUT
41+ if cat <<'MSG' | grep -qE '^[a-z]+\(.*\)!:'
42+ ${{ steps.message.outputs.message }}
43+ MSG
44+ then
45+ echo "Commit message indicates breaking change. Skipping cherry-pick."
46+ exit 1
4647 fi
4748
48- - name : Stop if breaking
49- if : steps.check.outputs.breaking == 'true'
50- run : |
51- echo "Commit message indicates breaking change. Skipping cherry-pick."
52- exit 1
53-
5449 - name : Configure Git
5550 run : |
5651 git config user.name "github-actions[bot]"
You can’t perform that action at this time.
0 commit comments