diff --git a/.github/actions/merge-changelogs/index.js b/.github/actions/merge-changelogs/index.js index 6bb158deb5..c0490d1af9 100644 --- a/.github/actions/merge-changelogs/index.js +++ b/.github/actions/merge-changelogs/index.js @@ -142,6 +142,9 @@ async function writeChangelog(newChangelog) { newChangelog + unifiedChangelog.split('\n').slice(30).join('\n'), { encoding: 'utf8' }); } +mergeChangelogs().catch(error => { + (0, core_1.setFailed)(error.message); +}); /***/ }), diff --git a/build-packages/merge-changelogs/index.ts b/build-packages/merge-changelogs/index.ts index c8babb21a4..f9e725416e 100644 --- a/build-packages/merge-changelogs/index.ts +++ b/build-packages/merge-changelogs/index.ts @@ -1,7 +1,7 @@ /* eslint-disable jsdoc/require-jsdoc */ import { readFile, writeFile } from 'fs/promises'; import { resolve } from 'path'; -import { setOutput, getInput, error, info } from '@actions/core'; +import { setOutput, getInput, error, info, setFailed } from '@actions/core'; export const validMessageTypes = [ 'Known Issue', @@ -206,3 +206,7 @@ async function writeChangelog(newChangelog: string): Promise { { encoding: 'utf8' } ); } + +mergeChangelogs().catch(error => { + setFailed(error.message); +});