Add CI config

This commit is contained in:
Histausse 2023-05-19 19:35:18 +02:00
parent 6aa251e9ec
commit fc90b3fb71
3 changed files with 25 additions and 4 deletions

View file

@ -1,4 +1,17 @@
import subprocess
import os
REMOVE_PATHS = [
{% if cookiecutter.open_source_license == "Proprietary" %} "LICENSE", {% endif %}
{% if cookiecutter.configure_ci == "False" %} ".woodpecker.yml", {% endif %}
]
for path in REMOVE_PATHS:
if path and os.path.exists(path):
if os.path.isdir(path):
os.rmdir(path)
else:
os.unlink(path)
subprocess.call(["git", "init"])
subprocess.call(["git", "checkout", "-b", "main"])