Skip to content

Commit c93421b

Browse files
authored
fix: release workflow (goharbor#605)
1 parent c7abe9f commit c93421b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.dagger/release.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ func (m *HarborCli) PublishRelease(ctx context.Context,
4444

4545
return ctr.
4646
WithWorkdir("/src").
47-
// Creating Release
48-
// WithExec([]string{"gh", "release", "create", "v" + m.AppVersion, "--generate-notes"}).
47+
// Create release if it doesn't exist, otherwise continue
48+
WithExec([]string{"sh", "-c", "gh release view v" + m.AppVersion + " || gh release create v" + m.AppVersion + " --generate-notes"}).
4949
WithExec(cmd).
5050
Stdout(ctx)
5151
}

0 commit comments

Comments
 (0)