From 0c44518061e4fc64b6e905f3b25656231f6bbf5f Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Mon, 11 Sep 2023 17:55:19 +0200 Subject: [PATCH] Add support for initial installation when running job "CheckUpdates" --- test-and-deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test-and-deploy.yml b/test-and-deploy.yml index e9b6607..5b8f5db 100644 --- a/test-and-deploy.yml +++ b/test-and-deploy.yml @@ -720,8 +720,10 @@ Debug: - rm /tmp/test.log >/dev/null 2>&1 || true - EC=0 - if [[ ! -f composer.lock ]]; then DOINSTALL=1; fi + - if [[ $DOINSTALL -eq 1 ]]; then mkdir -p config/default/sync; fi + - if [[ $DOINSTALL -eq 1 ]]; then touch config/default/sync/.gitkeep; fi - if [[ $DOINSTALL -eq 1 ]]; then composer install --no-interaction --no-progress --no-dev; fi - - if [[ $DOINSTALL -eq 1 ]]; then git add * >/dev/null >2&1 || true; fi + - if [[ $DOINSTALL -eq 1 ]]; then git add * >/dev/null 2>&1 || true; fi - if [[ $DOINSTALL -eq 1 ]]; then echo "Initial installation" >/tmp/test.log; fi - if [[ $DOINSTALL -eq 0 ]]; then composer update --no-interaction --no-progress --no-dev --dry-run $NAMESPACES_CHECK_UPDATE >/tmp/test.log 2>&1 || EC=$?; fi - if [[ $EC -ne 0 ]]; then cat /tmp/test.log; exit 1; fi -- GitLab