Skip to content

Commit

Permalink
do something
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Sep 9, 2024
1 parent f67e8b4 commit 311f4fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/actions/merge-changelogs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion build-packages/merge-changelogs/index.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -206,3 +206,7 @@ async function writeChangelog(newChangelog: string): Promise<void> {
{ encoding: 'utf8' }
);
}

mergeChangelogs().catch(error => {
setFailed(error.message);
});

0 comments on commit 311f4fb

Please sign in to comment.