From ad1c4b726b584e70577a15c4cf42cd69b6450d12 Mon Sep 17 00:00:00 2001 From: Summer Date: Fri, 26 Jan 2024 15:22:05 -0700 Subject: [PATCH] Grafana Build: fix release process not publishing latest storybook (#81412) Bugfix: release process not publishing latest storybook --- pkg/build/cmd/publishstorybook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/cmd/publishstorybook.go b/pkg/build/cmd/publishstorybook.go index b147d9a7b40..e33366d8e4b 100644 --- a/pkg/build/cmd/publishstorybook.go +++ b/pkg/build/cmd/publishstorybook.go @@ -39,7 +39,7 @@ func PublishStorybookAction(c *cli.Context) error { return err } - if latest, err := isLatest(cfg); err != nil && latest { + if latest, err := isLatest(cfg); err == nil && latest { log.Printf("Copying storybooks to latest...") if err := gcs.CopyRemoteDir(c.Context, gcs.Bucket(cfg.srcBucket), fmt.Sprintf("artifacts/storybook/v%s", cfg.tag), bucket, "latest"); err != nil { return err