File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676
7777 if [ -n "$BREAKING_LINES" ]; then
7878 echo "has_breaking=true" >> "$GITHUB_OUTPUT"
79- {
80- echo "details<<EOF"
81- echo "$DIFF_OUTPUT"
82- echo "EOF"
83- } >> "$GITHUB_OUTPUT"
79+ echo "$DIFF_OUTPUT" > "$RUNNER_TEMP/breaking_changes.txt"
8480 else
8581 echo "has_breaking=false" >> "$GITHUB_OUTPUT"
8682 echo "No breaking changes detected"
@@ -90,10 +86,18 @@ jobs:
9086 uses : actions/github-script@v7
9187 with :
9288 script : |
89+ const fs = require('fs');
90+ const path = require('path');
91+
9392 const changesetCount = parseInt('${{ steps.changeset.outputs.count }}');
9493 const hasMajor = '${{ steps.changeset.outputs.has_major }}' === 'true';
9594 const hasBreaking = '${{ steps.breaking.outputs.has_breaking }}' === 'true';
96- const details = `${{ steps.breaking.outputs.details }}`.trim();
95+
96+ let details = '';
97+ if (hasBreaking) {
98+ const detailsPath = path.join(process.env.RUNNER_TEMP, 'breaking_changes.txt');
99+ try { details = fs.readFileSync(detailsPath, 'utf8').trim(); } catch {}
100+ }
97101
98102 const { data: comments } = await github.rest.issues.listComments({
99103 owner: context.repo.owner,
You can’t perform that action at this time.
0 commit comments