|
16 | 16 | report: |
17 | 17 | description: 'The compatibility report in markdown format' |
18 | 18 | 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 }} |
22 | 19 |
|
23 | 20 | workflow_dispatch: |
24 | 21 | inputs: |
|
32 | 29 | runs-on: ubuntu-latest |
33 | 30 | outputs: |
34 | 31 | report: ${{ steps.merge_report.outputs.report }} |
35 | | - has_breaking_changes: ${{ steps.merge_report.outputs.has_breaking_changes }} |
36 | 32 | steps: |
37 | 33 | - name: Checkout Repository |
38 | 34 | uses: actions/checkout@v4 |
@@ -126,18 +122,12 @@ jobs: |
126 | 122 | run: | |
127 | 123 | npm run postprocessing:dry-run |
128 | 124 | 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