mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Update nightly release script
This commit is contained in:
parent
c6f6b0d054
commit
386034e1ef
1 changed files with 7 additions and 1 deletions
|
|
@ -495,7 +495,11 @@ func runRelease(opts releaseOptions) error {
|
|||
}
|
||||
changelogContent = strings.TrimSpace(changelogContent)
|
||||
if changelogContent == "" {
|
||||
return errNoUnreleasedContent
|
||||
fmt.Println("ℹ️ UNRELEASED_CHANGELOG.md has no unreleased entries. Skipping release.")
|
||||
writeGitHubOutput("release_skipped", "true")
|
||||
writeGitHubOutput("release_reason", "no_unreleased_changelog_content")
|
||||
writeGitHubOutput("release_outcome", "skipped")
|
||||
return nil
|
||||
}
|
||||
|
||||
originalVersionData, err := os.ReadFile(versionFile)
|
||||
|
|
@ -544,6 +548,7 @@ func runRelease(opts releaseOptions) error {
|
|||
|
||||
if opts.dryRun {
|
||||
writeGitHubOutput("release_dry_run", "true")
|
||||
writeGitHubOutput("release_outcome", "dry-run")
|
||||
fmt.Println("🧪 Dry run enabled: skipping git commit, push, tagging, and GitHub release creation")
|
||||
fmt.Println("\n--- Release Notes Preview ---")
|
||||
fmt.Println(releaseBody)
|
||||
|
|
@ -612,6 +617,7 @@ func runRelease(opts releaseOptions) error {
|
|||
writeGitHubOutput("release_url", releaseInfo.HTMLURL)
|
||||
}
|
||||
|
||||
writeGitHubOutput("release_outcome", "success")
|
||||
fmt.Println("🎉 Release completed successfully.")
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue