Skip to content

Commit

Permalink
Uncomment temporarily commented logic for generating empty manfiest i…
Browse files Browse the repository at this point in the history
…f repo has no changes.
  • Loading branch information
Sichan Yoo committed Oct 4, 2024
1 parent bda2b0e commit 4dc331d
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ struct PrepareRelease {
try FileManager.default.changeWorkingDirectory(repoPath)

let previousVersion = try getPreviousVersion()
// guard try repoHasChanges(previousVersion) else {
// /// If repo has no changes, create an empty release-manifest.json file.
// /// Empty manifest file makes GitHubReleasePublisher be no-op.
// /// The manifest file is required regardless of whether there should
// /// be a release or not.
// try createEmptyReleaseManifest()
// /// Return without creating new commit or tag in local repos.
// /// This makes GitPublisher be no-op.
// return
// }
guard try repoHasChanges(previousVersion) else {
/// If repo has no changes, create an empty release-manifest.json file.
/// Empty manifest file makes GitHubReleasePublisher be no-op.
/// The manifest file is required regardless of whether there should
/// be a release or not.
try createEmptyReleaseManifest()
/// Return without creating new commit or tag in local repos.
/// This makes GitPublisher be no-op.
return
}
let newVersion = try createNewVersion(previousVersion)

try stageFiles()
Expand Down

0 comments on commit 4dc331d

Please sign in to comment.