Skip to content

Commit 4eb4aa2

Browse files
committed
Update changeset.yaml
1 parent 0027409 commit 4eb4aa2

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/changeset.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ jobs:
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,

0 commit comments

Comments
 (0)