diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index 5333dc8eb529155a5278cecd18a6d50399c09e6b..66ab124c7f24a1d92efa4d69166ea808c3697a33 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -62,6 +62,7 @@ stages:
     - ssh-keyscan gitlab.lakedrops.com >> ~/.ssh/known_hosts
     - chmod 644 ~/.ssh/known_hosts
     - ssh git@gitlab.lakedrops.com
+    - if [ -n $DOWNGRADE_COMPOSER ]; then composer self-update --1; fi
     - if [ -n $GITLAB_ACCESS_TOKEN ]; then composer config -g gitlab-token.gitlab.lakedrops.com $GITLAB_ACCESS_TOKEN; fi
     - composer install --no-interaction --no-progress
     - composer lakedrops:scaffold --no-interaction