diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 424dea39167d1e0b63dd821d331f8c849b75c850..386a68c1ec1a62928e7c51b0a7f999a662bf8c24 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,10 @@ trigger-root:
     stage: deploy
     script:
         - apt update && apt install -y curl
+        - TARGET_BRANCH="$CI_COMMIT_BRANCH"
+        - if [[ "$TARGET_BRANCH" == "main" ]]; then
+            TARGET_BRANCH="master";
+          fi
         - 'curl --fail --request POST --form "variables[ADITO_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE" --form "token=$PUSH_TRIGGER_TOKEN" --form "ref=$CI_COMMIT_BRANCH" "https://gitlab.adito.de/api/v4/projects/676/trigger/pipeline"'
     only:
         - pushes
\ No newline at end of file