From c90f747ca6a6ff80cc42d1805171e2b91d34c6ad Mon Sep 17 00:00:00 2001 From: Meekdai Date: Mon, 1 Apr 2024 15:50:44 +0800 Subject: [PATCH] Update Gmeek.py --- Gmeek.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index b1a2ece..a701169 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -52,13 +52,12 @@ class GMEEK(): self.defaultConfig() def cleanFile(self): - workspace=os.environ.get('github.workspace') - print(workspace) - if os.path.exists(workspace+self.backup_dir): - shutil.rmtree(workspace+self.backup_dir) + workspace_path = os.environ.get('GITHUB_WORKSPACE') + if os.path.exists(workspace_path+"/"+self.backup_dir): + shutil.rmtree(workspace_path+"/"+self.backup_dir) - if os.path.exists(workspace+self.root_dir): - shutil.rmtree(workspace+self.root_dir) + if os.path.exists(workspace_path+"/"+self.root_dir): + shutil.rmtree(workspace_path+"/"+self.root_dir) if os.path.exists(self.backup_dir): shutil.rmtree(self.backup_dir)