Skip to content

Commit 604bb1f

Browse files
committed
Skip changelog release if there is no unreleased path
1 parent 9ad899d commit 604bb1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

changelog/release.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ func ReleaseInPath(path string, version string, versionPattern *regexp.Regexp) e
3333
versionChangelogPath := filepath.Join("changelog", version)
3434

3535
if !utils.FileExists(unreleasedChangelogPath) {
36-
return fmt.Errorf("couldn't find unreleased changelog path: %s", filepath.Join(path, unreleasedChangelogPath))
36+
logger.Info("Couldn't find unreleased changelog path - skipping changelog release (%s)",
37+
filepath.Join(path, unreleasedChangelogPath))
38+
return nil
3739
}
3840

3941
if utils.FileExists(versionChangelogPath) {

0 commit comments

Comments
 (0)