diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index b2afddab3e6dc07c7157b8b288c5d2f6937f30a8..5333dc8eb529155a5278cecd18a6d50399c09e6b 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -62,7 +62,7 @@ stages:
     - ssh-keyscan gitlab.lakedrops.com >> ~/.ssh/known_hosts
     - chmod 644 ~/.ssh/known_hosts
     - ssh git@gitlab.lakedrops.com
-    - if [ -z $GITLAB_ACCESS_TOKEN ]; then composer config -g gitlab-token.gitlab.lakedrops.com $GITLAB_ACCESS_TOKEN; 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
     - composer lakedrops:docker4drupal --no-interaction