From bc27ec040b01758653e4028249f21d5e01946cdd Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 3 Jan 2025 13:59:20 +0800 Subject: [PATCH] fix: ci --- iot_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iot_upload.py b/iot_upload.py index c6a3437..4550041 100644 --- a/iot_upload.py +++ b/iot_upload.py @@ -162,7 +162,7 @@ def get_the_last_windowsApp_GITversion(name): os.system('cp -rp /drone/src/ /tmp/theLastCode') os.chdir('/tmp/theLastCode/') # os.system('git clone ' + os.getenv('DRONE_GIT_HTTP_URL') + ' .' ) - os.system('git checkout -b ' + + ' ' + the_last_windowsAppZIP_GITversion) + os.system('git checkout -b ' + os.getenv('DRONE_BRANCH') + ' ' + the_last_windowsAppZIP_GITversion) os.system('ls && pwd && git describe --abbrev=0 --tags' ) return the_last_windowsAppZIP_GITversion else: