[tor-commits] [manual/translations] only checkout translation repo if there is no cached version

emmapeel at torproject.org emmapeel at torproject.org
Sun Apr 25 07:02:57 UTC 2021


commit 3fc0e63bf8dc0fba98989209b7ad2a77bdb9eaba
Author: emma peel <emma.peel at riseup.net>
Date:   Sun Apr 25 07:02:40 2021 +0000

    only checkout translation repo if there is no cached version
---
 .gitlab-ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 686c6c2..1a9c9e7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,6 +21,13 @@ before_script:
     - pip3 install wheel
     - pip3 install lektor
     - echo 'checking out translations'
+    - >
+      if [[ ! -d "i18n" ]]; then
+        cd i18n && git checkout tbmanual-contentspot && git reset --hard && git pull && cd ..
+      else
+        git clone https://git.torproject.org/translation.git i18n
+        cd i18n && git checkout tbmanual-contentspot && cd ..
+      fi
     - rm -rf i18n
     - git clone https://git.torproject.org/translation.git i18n
     - cd i18n && git checkout tbmanual-contentspot && cd ..



More information about the tor-commits mailing list