Skip to content

Commit d5242ad

Browse files
committed
fix :)
1 parent 4955d4a commit d5242ad

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/cherry-pick-v2.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff 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]"

0 commit comments

Comments
 (0)