summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@autistici.org>2026-03-02 15:07:16 +0100
committercyberta <cyberta@riseup.net>2026-03-16 11:50:00 +0000
commit7d1ffc47aca2948859401fae108ccb43ed868783 (patch)
tree1866bd263440360950465de503288d4c42a0dda5
parentdfb270ab3fd3e6988b6cbc4043c66908f86e7116 (diff)
push updated strings to l10n repo
-rw-r--r--.gitlab-ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 03ff5df5..f8a629b7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -96,6 +96,38 @@ screenshot:
expire_in: 3 days
allow_failure: true
+sync-source-strings-to-l10n:
+ stage: .pre
+ image:
+ name: alpine/git
+ entrypoint: [""]
+ rules:
+ - if: '$CI_COMMIT_BRANCH == "master"'
+ changes:
+ - app/src/main/res/values/strings.xml
+ before_script:
+
+ script:
+ - git config --global user.name "L10N Bot"
+ - git config --global user.email "leap-code-o-matic@leap.se"
+ - NEW_BRANCH="source-update-$CI_COMMIT_SHORT_SHA"
+
+ # shallow clone l10n repo
+ - git clone --depth 1 -b bitmask https://oauth2:${bitmask_2_l10n}@0xacab.org/leap/l10n.git
+ - cd l10n
+
+ # make new branch - copy files
+ - git checkout -b $NEW_BRANCH
+ - mkdir -p android/values
+ - cp ../app/src/main/res/values/strings.xml bitmask/
+
+ # commit upon changes
+ - git add bitmask/strings.xml
+ - git commit -m "Update source strings from bitmask_android $CI_COMMIT_SHORT_SHA" || exit 0
+
+ # push and mr
+ - git push -o merge_request.create -o merge_request.target=bitmask origin $NEW_BRANCH
+
#ui_test:
# image: "0xacab.org:4567/leap/bitmask_android/android-emulator:latest"
# stage: test