Skip to content

Commit 2b51e8f

Browse files
committed
fix: Don’t re-parse an output that is already JSON
1 parent bb53456 commit 2b51e8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ runs:
109109
uses: actions/github-script@v8
110110
with:
111111
script: |
112-
const filings = JSON.parse('${{ steps.file.outputs.filings }}' || '[]');
113-
const fixings = JSON.parse('${{ steps.fix.outputs.fixings }}' || '[]');
112+
const filings = ${{ steps.file.outputs.filings || '' }} || [];
113+
const fixings = ${{ steps.fix.outputs.fixings || '' }} || [];
114114
const fixingsByIssueUrl = fixings.reduce((acc, fixing) => {
115115
if (fixing.issue && fixing.issue.url) {
116116
acc[fixing.issue.url] = fixing;

0 commit comments

Comments
 (0)