mirror of https://github.com/arendst/Tasmota.git
fix github actions copy error
in some cases the folder already exists. Do not abort copy.
This commit is contained in:
parent
104fec83fb
commit
ef3c061ecf
|
@ -54,19 +54,19 @@ build_flags = ''.join([element.replace("-D", " ") for element in env.GetProjectO
|
|||
if ("CORE32SOLO1" in extra_flags or "FRAMEWORK_ARDUINO_SOLO1" in build_flags) and flag_custom_sdkconfig == False:
|
||||
FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-solo1")
|
||||
if github_actions and os.path.exists("./firmware/firmware"):
|
||||
shutil.copytree("./firmware/firmware", "/home/runner/.platformio/packages/framework-arduino-solo1/variants/tasmota")
|
||||
shutil.copytree("./firmware/firmware", "/home/runner/.platformio/packages/framework-arduino-solo1/variants/tasmota", dirs_exist_ok=True)
|
||||
if variants_dir:
|
||||
shutil.copytree("./firmware/firmware", variants_dir, dirs_exist_ok=True)
|
||||
elif ("CORE32ITEAD" in extra_flags or "FRAMEWORK_ARDUINO_ITEAD" in build_flags) and flag_custom_sdkconfig == False:
|
||||
FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-ITEAD")
|
||||
if github_actions and os.path.exists("./firmware/firmware"):
|
||||
shutil.copytree("./firmware/firmware", "/home/runner/.platformio/packages/framework-arduino-ITEAD/variants/tasmota")
|
||||
shutil.copytree("./firmware/firmware", "/home/runner/.platformio/packages/framework-arduino-ITEAD/variants/tasmota", dirs_exist_ok=True)
|
||||
if variants_dir:
|
||||
shutil.copytree("./firmware/firmware", variants_dir, dirs_exist_ok=True)
|
||||
else:
|
||||
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")
|
||||
if github_actions and os.path.exists("./firmware/firmware"):
|
||||
shutil.copytree("./firmware/firmware", "/home/runner/.platformio/packages/framework-arduinoespressif32/variants/tasmota")
|
||||
shutil.copytree("./firmware/firmware", "/home/runner/.platformio/packages/framework-arduinoespressif32/variants/tasmota", dirs_exist_ok=True)
|
||||
if variants_dir:
|
||||
shutil.copytree("./firmware/firmware", variants_dir, dirs_exist_ok=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue