@@ -113,7 +113,6 @@ def update_download_stats(bundle_path):
113113    with  open (
114114        os .path .join (bundle_path , "circuitpython_library_pypi_stats.md" ), "w" 
115115    ) as  md_file :
116- 
117116        # Write headers 
118117        md_file .write ("\n " .join (lib_list_header ))
119118        md_file .write ("\n " )
@@ -285,6 +284,7 @@ def update_bundle(bundle_path):
285284    status  =  StringIO ()
286285    git .status ("--short" , _out = status )
287286    updates  =  []
287+     release_required  =  False 
288288    status  =  status .getvalue ().strip ()
289289    if  status :
290290        for  status_line  in  status .split ("\n " ):
@@ -305,6 +305,7 @@ def update_bundle(bundle_path):
305305            url  =  repo_remote_url (directory )
306306            summary  =  "\n " .join (diff_lines [1 :- 1 ])
307307            updates .append ((url [:- 4 ], old_commit , new_commit , summary ))
308+             release_required  =  True 
308309    os .chdir (working_directory )
309310    lib_list_updates  =  check_lib_links_md (bundle_path )
310311    if  lib_list_updates :
@@ -321,6 +322,7 @@ def update_bundle(bundle_path):
321322                ),
322323            )
323324        )
325+         release_required  =  True 
324326    if  update_download_stats (bundle_path ):
325327        updates .append (
326328            (
@@ -334,7 +336,7 @@ def update_bundle(bundle_path):
334336            )
335337        )
336338
337-     return  updates 
339+     return  updates ,  release_required 
338340
339341
340342def  commit_updates (bundle_path , update_info ):
@@ -546,9 +548,9 @@ def new_release(bundle, bundle_path):
546548        bundle_dir  =  os .path .join (bundles_dir , cp_bundle )
547549        try :
548550            fetch_bundle (cp_bundle , bundle_dir )
549-             updates_needed  =  update_bundle (bundle_dir )
550-             if  updates_needed :
551-                 commit_updates (bundle_dir , updates_needed )
551+             updates ,  release_required  =  update_bundle (bundle_dir )
552+             if  release_required :
553+                 commit_updates (bundle_dir , updates )
552554                push_updates (bundle_dir )
553555            new_release (cp_bundle , bundle_dir )
554556        except  RuntimeError  as  e :
0 commit comments