fix(tasks): run commit task as migration for UD
All checks were successful
release / Release (push) Successful in 15s

This commit is contained in:
2025-05-27 11:07:54 +02:00
parent c9c2743c08
commit 6730567526

View File

@ -79,18 +79,33 @@ ui_fileinfo: # would like to save this programatically when generated but don't
_tasks: _tasks:
- "{% if _copier_operation == 'copy' %} git init --initial-branch=main {% endif %}" - "{% if _copier_operation == 'copy' %} git init --initial-branch=main {% endif %}"
- > - >
{% if not ui_fileinfo %} echo "No .ui files to process" {% if not ui_fileinfo %} echo "No .ui files to process";
{% else %} {% else %}
{% for info in ui_fileinfo %}pyside6-uic {{ info.ui_file }} -o {{ info.out_file }}; {% for info in ui_fileinfo %}pyside6-uic {{ info.ui_file }} -o {{ info.out_file }};
{% endfor %} {% endfor %}
{% endif %} {% endif %}
- > - >
{% if make_commit %} {% if make_commit %}
echo "making autocommit in $(pwd)";
{% if _copier_operation == 'copy' %} {% if _copier_operation == 'copy' %}
git add -A; git commit -a -m 'Init repo {{ project_name }} at template version {{ _commit }}' git add -A; git commit -a -m 'Init repo {{ project_name }} at template version {{ _commit }}'
{% else %}
git add -A; git commit -a -m 'Update repo with template version {{ _commit }}'
{% endif %} {% endif %}
{% else %} {% else %}
echo "Autocommit disabled, leaving repo dirty" echo "Autocommit disabled, leaving repo dirty"
{% endif %} {% endif %}
_migrations:
- stage: after
command: >
{% if make_commit %}
echo "making autocommit in $(pwd)";
{% if _copier_operation == 'copy' %}
git add -A; git commit -a -m 'Init repo {{ project_name }} at template version {{ _commit }}'
{% else %}
git add -A; git commit -a -m 'Update repo with template version {{ _commit }}'
{% endif %}
{% else %}
echo "Autocommit disabled, leaving repo dirty"
{% endif %}
- stage: after
command: pre-commit install