diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-27 13:36:06 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-27 13:36:06 +0300 |
| commit | 5372338873e19309a32f8553de6347aece8c051f (patch) | |
| tree | a0e6871022a878c33f7a6ffae2f8d8a0bbb7f2a0 /.gitlab-ci.yml | |
| parent | 9b39aa00412433014a2cb6f1fbfbe96cf577df97 (diff) | |
auto create MR on push into weblate-integration
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02509fd4..eb1b10a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,3 +2,15 @@ include: - project: 'ci/ci-templates' ref: master file: .ci-build-apk-fdroid.yml + +# https://about.gitlab.com/blog/how-to-automatically-create-a-new-mr-on-gitlab-with-gitlab-ci/ +weblate-integration-auto-mr: + image: ${INFRA_IMAGE} + stage: deploy + rules: + - if: $CI_COMMIT_BRANCH == "weblate-integration" && $AUTO_MR_TOKEN != null + script: + - HOST=${CI_PROJECT_URL} CI_PROJECT_ID=${CI_PROJECT_ID} + CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} + GITLAB_USER_ID=${GITLAB_USER_ID} + PRIVATE_TOKEN=${AUTO_MR_TOKEN} ./utils/autoMergeRequest.sh |