Skip to content

Commit

Permalink
info
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed May 31, 2024
1 parent 79bcd47 commit dabc2b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ export async function generateReleaseNotes(
const context = github.context
const latestRelease = releaseData.latestRelease
const nextRelease = releaseData.nextRelease
const configPath = inputs.configPath
let body = ''
let sections: SectionData = {}

core.info(`config path: ${configPath}`)

try {
const notes = await client.rest.repos.generateReleaseNotes({
...context.repo,
tag_name: nextRelease,
previous_tag_name: semver.gt(latestRelease, '0.0.0') ? latestRelease : '',
target_commitish: releaseData.branch,
configuration_file_path: inputs.configPath,
configuration_file_path: configPath,
})

body = notes.data.body
Expand Down

0 comments on commit dabc2b1

Please sign in to comment.