[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [community/translations] simplify script and make it less prone to fail, although in detriment of efficiency



commit 949f72c25b26d333816fae2cb84d025aa6810093
Author: emma peel <emma.peel@xxxxxxxxxx>
Date:   Thu May 13 13:00:06 2021 +0200

    simplify script and make it less prone to fail, although in detriment of efficiency
---
 .gitlab-ci.yml | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16ba86a..0b8fbcc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,6 @@ cache:
   paths:
     - packages
     - venv
-    - i18n
     - lego
     - apt-cache
 
@@ -40,13 +39,9 @@ before_script:
     - pip3 install wheel
     - pip3 install lektor
     - echo 'checking out translations'
-    - >
-      if [ "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 communitytpo-contentspot && cd ..
 
 pages:
   script:

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits