Skip to content

Commit 6f42361

Browse files
committed
update
1 parent d194ecc commit 6f42361

1 file changed

Lines changed: 9 additions & 19 deletions

File tree

.github/workflows/backward-compatible-report.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ on:
1616
report:
1717
description: 'The compatibility report in markdown format'
1818
value: ${{ jobs.generate-report.outputs.report }}
19-
has_breaking_changes:
20-
description: 'Whether breaking changes were detected'
21-
value: ${{ jobs.generate-report.outputs.has_breaking_changes }}
2219

2320
workflow_dispatch:
2421
inputs:
@@ -32,7 +29,6 @@ jobs:
3229
runs-on: ubuntu-latest
3330
outputs:
3431
report: ${{ steps.merge_report.outputs.report }}
35-
has_breaking_changes: ${{ steps.merge_report.outputs.has_breaking_changes }}
3632
steps:
3733
- name: Checkout Repository
3834
uses: actions/checkout@v4
@@ -126,18 +122,12 @@ jobs:
126122
run: |
127123
npm run postprocessing:dry-run
128124
REPORT_PATH="merge-report.md"
129-
if [ -f "$REPORT_PATH" ]; then
130-
REPORT=$(cat "$REPORT_PATH")
131-
echo "report<<EOF" >> $GITHUB_OUTPUT
132-
echo "$REPORT" >> $GITHUB_OUTPUT
133-
echo "EOF" >> $GITHUB_OUTPUT
134-
# Check if report contains breaking changes
135-
if grep -q "⚠️ Breaking" "$REPORT_PATH"; then
136-
echo "has_breaking_changes=true" >> $GITHUB_OUTPUT
137-
else
138-
echo "has_breaking_changes=false" >> $GITHUB_OUTPUT
139-
fi
140-
else
141-
echo "report=No changes detected." >> $GITHUB_OUTPUT
142-
echo "has_breaking_changes=false" >> $GITHUB_OUTPUT
143-
fi
125+
126+
echo "=== Compatibility Report ==="
127+
cat "$REPORT_PATH"
128+
echo "============================="
129+
130+
REPORT=$(cat "$REPORT_PATH")
131+
echo "report<<EOF" >> $GITHUB_OUTPUT
132+
echo "$REPORT" >> $GITHUB_OUTPUT
133+
echo "EOF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)