Skip to content

Commit d38c37b

Browse files
committed
ci: fix release notes with env variable
1 parent 8bd55fc commit d38c37b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ jobs:
130130
- name: Generate release notes
131131
id: release_notes
132132
uses: actions/github-script@v8
133+
env:
134+
PR_DATA: ${{ steps.get_prs.outputs.prs }}
133135
with:
134136
script: |
135-
// Trim whitespace from PR titles
136-
const prs = JSON.parse('${{ steps.get_prs.outputs.prs }}').map(pr => ({
137+
const prs = JSON.parse(process.env.PR_DATA).map(pr => ({
137138
...pr,
138139
title: pr.title.trim()
139140
}));

0 commit comments

Comments
 (0)