Skip to content

Commit

Permalink
build: update distribution (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: shvgn <[email protected]>
  • Loading branch information
github-actions[bot] and shvgn authored Feb 9, 2022
1 parent b0bc436 commit 79a996b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@ function parseChangeEntries(pr, changesYAMLs) {
const entries = [];
for (const changeYAML of changesYAMLs) {
try {
const doc = yaml.load(changeYAML);
const doc = yaml.load(changeYAML, { schema: yaml.FAILSAFE_SCHEMA });
if (!doc) {
const change = createEmptyChange(pr);
entries.push(change);
continue;
}
const change = parseChange(doc, pr);
entries.push(change);
}
Expand Down

0 comments on commit 79a996b

Please sign in to comment.