File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ const main = async () => {
2323 }
2424
2525 const commitRange = lastTag ? `${ lastTag } ..HEAD` : 'HEAD' ;
26- const releaseNotes = execSync (
27- `git log ${ commitRange } --pretty=format:"* %s (%h)" --no-merges | grep -v "Version Packages"`
28- ) . toString ( ) ;
29-
30- if ( ! releaseNotes ) {
31- console . log (
32- 'No new commits since the last release (excluding bot commits).'
33- ) ;
34- } else {
26+ let releaseNotes = undefined ;
27+ try {
28+ releaseNotes = execSync (
29+ `git log ${ commitRange } --pretty=format:"* %s (%h)" | grep -v "Version Packages"`
30+ ) . toString ( ) ;
3531 console . log ( 'Generated release notes:' ) ;
3632 console . log ( releaseNotes ) ;
33+ } catch ( error : any ) {
34+ console . log (
35+ `Failed to generate release notes due to error: ${ error . message } `
36+ ) ;
3737 }
3838
3939 execSync ( `git tag -a v${ version } -m "Release v${ version } "` , {
You can’t perform that action at this time.
0 commit comments