- Enhance error log in case of a fatal error building the changelog

- RELATES TO https://github.com/mikepenz/release-changelog-builder-action/issues/1331
This commit is contained in:
Mike Penz
2024-04-11 06:28:47 +00:00
committed by GitHub
parent 64d5b0f2ee
commit 1eff87d3e9
6 changed files with 30 additions and 31 deletions
+2 -5
View File
@@ -1,6 +1,6 @@
import {mergeConfiguration, resolveConfiguration} from '../../src/utils'
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder'
import { GithubRepository } from '../../src/repositories/GithubRepository'
import {GithubRepository} from '../../src/repositories/GithubRepository'
jest.setTimeout(180000)
@@ -12,10 +12,7 @@ it('Test custom changelog builder', async () => {
// define the configuration file to use.
// By default it retireves a configuration from a json file
// You can also quickly modify in code.
const configuration = mergeConfiguration(undefined, resolveConfiguration(
'',
'configs/configuration.json'
))
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs/configuration.json'))
// Demo to modify the configuration further in code
// configuration.pr_template = "#{{TITLE}}"
Generated Vendored
+1
View File
@@ -217,6 +217,7 @@ function run() {
}
catch (error /* eslint-disable-line @typescript-eslint/no-explicit-any */) {
core.setFailed(error.message);
core.error(`🔥 Failed to generate changelog due to ${JSON.stringify(error)}`);
}
});
}
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "release-changelog-builder-action",
"version": "v4.1.0",
"version": "v5.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "release-changelog-builder-action",
"version": "v4.1.0",
"version": "v5.0.0",
"license": "Apache 2.0",
"dependencies": {
"@actions/core": "^1.10.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "release-changelog-builder-action",
"version": "v4.1.0",
"version": "v5.0.0",
"private": true,
"description": "A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.",
"main": "lib/main.js",
+1
View File
@@ -111,6 +111,7 @@ async function run(): Promise<void> {
}
} catch (error: any /* eslint-disable-line @typescript-eslint/no-explicit-any */) {
core.setFailed(error.message)
core.error(`🔥 Failed to generate changelog due to ${JSON.stringify(error)}`)
}
}