deployment.py aktualisiert
Deployment / deploy (push) Successful in 25s

This commit is contained in:
2023-07-27 23:24:27 +02:00
parent ed7b5f6ff1
commit e5fc94a0e1
+4 -1
View File
@@ -16,7 +16,10 @@ def run():
current_number = current_number + last_number current_number = current_number + last_number
last_number = temp last_number = temp
with open(os.environ['GITHUB_OUTPUT'], 'a+') as gh_output: output_file_path = os.environ['GITHUB_OUTPUT']
os.makedirs(os.path.dirname(output_file_path), exist_ok=True) # Create directory if it does not exist
with open(output_file_path, 'a') as gh_output: # 'a' mode will create the file if it does not exist, otherwise it will append
print(f'lastNumber={last_number}', file=gh_output) print(f'lastNumber={last_number}', file=gh_output)