Update Gmeek.py

This commit is contained in:
Meekdai 2024-04-01 15:50:44 +08:00
parent 9234c74350
commit c90f747ca6

View File

@ -52,13 +52,12 @@ class GMEEK():
self.defaultConfig() self.defaultConfig()
def cleanFile(self): def cleanFile(self):
workspace=os.environ.get('github.workspace') workspace_path = os.environ.get('GITHUB_WORKSPACE')
print(workspace) if os.path.exists(workspace_path+"/"+self.backup_dir):
if os.path.exists(workspace+self.backup_dir): shutil.rmtree(workspace_path+"/"+self.backup_dir)
shutil.rmtree(workspace+self.backup_dir)
if os.path.exists(workspace+self.root_dir): if os.path.exists(workspace_path+"/"+self.root_dir):
shutil.rmtree(workspace+self.root_dir) shutil.rmtree(workspace_path+"/"+self.root_dir)
if os.path.exists(self.backup_dir): if os.path.exists(self.backup_dir):
shutil.rmtree(self.backup_dir) shutil.rmtree(self.backup_dir)