@@ -667,32 +667,35 @@ func getAccessToken() (string, error) {
667667}
668668
669669func uploadExportedProvProfiles (bitriseClient * bitriseclient.BitriseClient , profilesToExport []profileutil.ProvisioningProfileInfoModel , outputDirPath string ) (bool , error ) {
670+ fmt .Println ()
671+ log .Infof ("Uploading provisioning profiles..." )
672+
670673 profilesToUpload , err := filterAlreadyUploadedProvProfiles (bitriseClient , profilesToExport )
671674 if err != nil {
672675 return false , err
673676 }
674677
675678 if len (profilesToUpload ) > 0 {
676- fmt .Println ()
677- log .Infof ("Uploading provisioning profiles..." )
678-
679679 if err := uploadProvisioningProfiles (bitriseClient , profilesToUpload , outputDirPath ); err != nil {
680680 return false , err
681681 }
682+ } else {
683+ log .Warnf ("There is no new provisioning profile to upload..." )
682684 }
683685
684686 return true , nil
685687}
686688
687689func uploadExportedIdentity (bitriseClient * bitriseclient.BitriseClient , certificatesToExport []certificateutil.CertificateInfoModel , outputDirPath string ) (bool , error ) {
690+ fmt .Println ()
691+ log .Infof ("Uploading certificate..." )
692+
688693 shouldUploadIdentities , err := shouldUploadCertificates (bitriseClient , certificatesToExport )
689694 if err != nil {
690695 return false , err
691696 }
692697
693698 if shouldUploadIdentities {
694- fmt .Println ()
695- log .Infof ("Uploading certificate..." )
696699
697700 if err := UploadIdentity (bitriseClient , outputDirPath ); err != nil {
698701 return false , err
@@ -715,8 +718,7 @@ func askUploadIdentities() (bool, error) {
715718}
716719
717720func filterAlreadyUploadedProvProfiles (client * bitriseclient.BitriseClient , localProfiles []profileutil.ProvisioningProfileInfoModel ) ([]profileutil.ProvisioningProfileInfoModel , error ) {
718- fmt .Println ()
719- log .Infof ("Looking for provisioning profile duplicates on Bitrise..." )
721+ log .Printf ("Looking for provisioning profile duplicates on Bitrise..." )
720722
721723 uploadedProfileUUIDList := map [string ]bool {}
722724 profilesToUpload := []profileutil.ProvisioningProfileInfoModel {}
@@ -748,8 +750,7 @@ func filterAlreadyUploadedProvProfiles(client *bitriseclient.BitriseClient, loca
748750}
749751
750752func shouldUploadCertificates (client * bitriseclient.BitriseClient , certificatesToExport []certificateutil.CertificateInfoModel ) (bool , error ) {
751- fmt .Println ()
752- log .Infof ("Looking for certificate duplicates on Bitrise..." )
753+ log .Printf ("Looking for certificate duplicates on Bitrise..." )
753754
754755 var uploadedCertificatesSerialList []string
755756 localCertificatesSerialList := []string {}
0 commit comments