From 171aececef49e7eaf47f2222437a8f10652836ef Mon Sep 17 00:00:00 2001
From: Thomas Wood <thomas.wood09@imperial.ac.uk>
Date: Tue, 2 Oct 2018 15:08:49 +0100
Subject: [PATCH] Update variables to GitLab 9 names

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9abbcae..209e90e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,7 @@ stages:
 update_publications:
   stage: update
   script:
-    - git checkout -B ${CI_BUILD_REF_NAME}
+    - git checkout -B ${CI_COMMIT_REF_NAME}
     - git submodule update --init --remote
     - git add publications
     - git commit -m "[AUTO] Updating publications submodule" || exit 0
@@ -14,7 +14,7 @@ update_publications:
     - git remote add rw git@gitlab.doc.ic.ac.uk:${CI_PROJECT_PATH}.git
     - eval `ssh-agent`
     - echo "$PUSH_KEY" | ssh-add -
-    - git push rw ${CI_BUILD_REF_NAME}
+    - git push rw ${CI_COMMIT_REF_NAME}
   variables:
     GIT_AUTHOR_NAME: Resource Reasoning Group Backup Bot
     GIT_COMMITTER_NAME: Resource Reasoning Group Backup Bot
-- 
GitLab