Skip to content

Commit 4ff0502

Browse files
authored
update ci
1 parent 5d4d926 commit 4ff0502

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/apichecks.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
git status
5757
git diff --exit-code api/
5858
shell: bash
59-
continue-on-error: true
59+
continue-on-error: true
6060
check-label:
6161
runs-on: ubuntu-latest
6262
steps:
@@ -67,10 +67,10 @@ jobs:
6767
echo "PR Labels: $LABELS"
6868
6969
if echo "$LABELS" | grep -q '"api-breaking-change-signoff"'; then
70-
echo "Special label found ✅"
70+
echo "api-breaking-change-signoff label found ✅"
7171
echo "HAS_SPECIAL_LABEL=true" >> $GITHUB_ENV
7272
else
73-
echo "No special label found ❌"
73+
echo "api-breaking-change-signoff label not found ❌"
7474
echo "HAS_SPECIAL_LABEL=false" >> $GITHUB_ENV
7575
fi
7676
@@ -80,8 +80,11 @@ jobs:
8080
steps:
8181
- name: Determine merge eligibility
8282
run: |
83-
if [[ "${{ needs.api-check.outputs.api_check_status }}" == "success" ]] || [[ "${{ env.HAS_SPECIAL_LABEL }}" == "true" ]]; then
84-
echo "Merge allowed ✅"
83+
if [[ "${{ needs.ci-check.outputs.api_check_status }}" == "success" ]]; then
84+
echo "API check passed, no breaking changes detected ✅"
85+
exit 0
86+
elif [[ "${{ env.HAS_SPECIAL_LABEL }}" == "true" ]]; then
87+
echo "Label api-breaking-change-signoff found, merge allowed ✅"
8588
exit 0
8689
else
8790
echo "Merge conditions not met ❌"

0 commit comments

Comments
 (0)