Skip to content

Commit ad1c4b7

Browse files
authored
Grafana Build: fix release process not publishing latest storybook (grafana#81412)
Bugfix: release process not publishing latest storybook
1 parent 1213b66 commit ad1c4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/build/cmd/publishstorybook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func PublishStorybookAction(c *cli.Context) error {
3939
return err
4040
}
4141

42-
if latest, err := isLatest(cfg); err != nil && latest {
42+
if latest, err := isLatest(cfg); err == nil && latest {
4343
log.Printf("Copying storybooks to latest...")
4444
if err := gcs.CopyRemoteDir(c.Context, gcs.Bucket(cfg.srcBucket), fmt.Sprintf("artifacts/storybook/v%s", cfg.tag), bucket, "latest"); err != nil {
4545
return err

0 commit comments

Comments
 (0)