Grafana Build: fix release process not publishing latest storybook (#81412)

Bugfix: release process not publishing latest storybook
This commit is contained in:
Summer 2024-01-26 15:22:05 -07:00 committed by GitHub
parent 1213b66188
commit ad1c4b726b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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