Skip to content

Commit 1a60127

Browse files
Adding a condition for null
1 parent 822ef2d commit 1a60127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/get-release-notes/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
state: 'all',
3535
head: `${process.env.REPO_OWNER}:release/${process.env.VERSION}`,
3636
});
37-
core.setOutput('RELEASE_NOTES', pulls[0].body || '');
37+
core.setOutput('RELEASE_NOTES', pulls[0]?.body ?? '');
3838
env:
3939
GITHUB_TOKEN: ${{ inputs.token }}
4040
REPO_OWNER: ${{ inputs.repo_owner }}

0 commit comments

Comments
 (0)