diff --git a/main.go b/main.go index d933237..a90ac6f 100644 --- a/main.go +++ b/main.go @@ -82,21 +82,22 @@ func main() { return err } - githubactions.Infof("uploading %s", p) - ct, err := GetContentType(file) if err != nil { return err } cts := strings.SplitN(ct, ";", 2) + c := strings.TrimSpace(cts[0]) opts := &azblob.UploadFileOptions{ HTTPHeaders: &blob.HTTPHeaders{ - BlobContentType: cast.Ptr(strings.TrimSpace(cts[0])), + BlobContentType: cast.Ptr(c), }, } + githubactions.Infof("uploading %s (%s)", p, c) + _, err = client.UploadFile(ctx, cfg.ContainerName, p, file, opts) if err != nil { return err