diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9c9651a686361fcc1ed322bf61d988bac620c3b5..31213e8ecd9ec287d97435dc282eb3fa7c3650d6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,5 +14,7 @@ patch-and-commit--staging-azure:
     IMAGE_TAG_HELM_FILE: "helm/staging-azure/graphpolaris-frontend/values.yaml"
     IMAGE_TAG_HELM_FILE_VARIABLE: "image.tag"
   needs:
+    # Make sure we get veriables from previous steps
+    - !reference [patch-and-commit, needs]
     # Run sequentially to avoid race conditions
-    -  patch-and-commit
+    -  patch-and-commit
\ No newline at end of file