@@ -31,22 +31,24 @@ def run() -> None:
3131 missing_tags = sorted (Version (i ) for i in released_tags - existing_tags )
3232
3333 if missing_tags and os .environ .get ("GITHUB_ACTIONS" ):
34- check_call ([
"git" ,
"config" ,
"--global" ,
"user.email" ,
"[email protected] " ])
35- check_call (["git" , "config" , "--global" , "user.name" , "Mirroring Mike " ])
34+ check_call ([
"git" ,
"config" ,
"--global" ,
"user.email" ,
"[email protected] " ])
35+ check_call (["git" , "config" , "--global" , "user.name" , "Bernat Gabor " ])
3636 toml = ROOT / "pyproject.toml"
3737
3838 for tag in missing_tags :
39- print (f"Mirror { tag } " )
39+ print (f"\n \n Mirror { tag } " )
4040 text = toml .read_text (encoding = "utf-8" )
4141 text = re .sub (r'version = ".*?"' , f'version = "{ tag } "' , text )
4242 text = re .sub (r'"pyproject-fmt==.*"' , f"pyproject-fmt=={ tag } " , text )
4343 toml .write_text (text , encoding = "utf-8" )
4444 check_call (["git" , "add" , "pyproject.toml" ])
45+ check_call (["git" , "diff" , "HEAD" , "-u" ])
4546 check_call (["git" , "commit" , "-m" , f"Mirror { tag } " ])
4647 check_call (["git" , "tag" , str (tag )])
4748
4849 if missing_tags and sys .argv [1 ] == "true" :
49- check_call (["git" , "push" , "--tags" ])
50+ print ("\n \n Push" )
51+ check_call (["git" , "push" , "--tags" , "-f" ])
5052 check_call (["git" , "push" ])
5153
5254
0 commit comments