From 6187a62b5223d253588a743f163cfbd41cdde1f7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 2 Jan 2025 17:37:48 +0800 Subject: [PATCH] fix: ci --- IOTContainer/testci | 2 +- IOTContainer/testdir/aaa/aaa.123 | 1 + IOTContainer/testdir/aaa/bbb/123.txt | 2 +- iot_upload.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 IOTContainer/testdir/aaa/aaa.123 diff --git a/IOTContainer/testci b/IOTContainer/testci index d800886..4632e06 100644 --- a/IOTContainer/testci +++ b/IOTContainer/testci @@ -1 +1 @@ -123 \ No newline at end of file +123456 \ No newline at end of file diff --git a/IOTContainer/testdir/aaa/aaa.123 b/IOTContainer/testdir/aaa/aaa.123 new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/IOTContainer/testdir/aaa/aaa.123 @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/IOTContainer/testdir/aaa/bbb/123.txt b/IOTContainer/testdir/aaa/bbb/123.txt index d800886..15e4060 100644 --- a/IOTContainer/testdir/aaa/bbb/123.txt +++ b/IOTContainer/testdir/aaa/bbb/123.txt @@ -1 +1 @@ -123 \ No newline at end of file +123s \ No newline at end of file diff --git a/iot_upload.py b/iot_upload.py index cc27c0c..2056785 100644 --- a/iot_upload.py +++ b/iot_upload.py @@ -163,7 +163,7 @@ def get_the_last_windowsApp_GITversion(name): print('正在git获取上一个版本的代码:') os.system('mkdir -p /tmp/theLastCode/') - os.system('git clone' + os.getenv('DRONE_GIT_HTTP_URL') + ' /tmp/theLastCode/IOTContainer/' ) + os.system('git clone ' + os.getenv('DRONE_GIT_HTTP_URL') + ' /tmp/theLastCode/IOTContainer/' ) os.system('cd /tmp/theLastCode/ && git checkout ' + the_last_windowsAppZIP_GITversion) return the_last_windowsAppZIP_GITversion else: