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

Bugfix: release process not publishing latest storybook
pull/80926/head
Summer 1 year ago committed by GitHub
parent 1213b66188
commit ad1c4b726b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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

Loading…
Cancel
Save