From 5b163dd406afbc838640e530521745b3d894b115 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 8 Jan 2025 13:40:57 -0500 Subject: [PATCH] DO NOT MERGE: Run on this PR. --- .github/workflows/update-translations.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-translations.yml b/.github/workflows/update-translations.yml index 9cc38e3e5a..46a71c17df 100644 --- a/.github/workflows/update-translations.yml +++ b/.github/workflows/update-translations.yml @@ -3,6 +3,7 @@ permissions: contents: write pull-requests: write on: + pull_request: schedule: - cron: "0 10 * * 1" workflow_dispatch: @@ -12,13 +13,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Fetch and merge from Weblate # The commit message is generated in Weblate; see https://hosted.weblate.org/addon/17163/ run: | + git log --oneline --graph --all -n5 git remote add weblate https://hosted.weblate.org/git/zulip/zulip-flutter/ git fetch weblate - git merge --ff-only weblate/main + GIT_COMMITTER_NAME="Hosted Weblate" GIT_COMMITTER_EMAIL="hosted@weblate.org" \ + git cherry-pick weblate/main ^HEAD - name: Clone Flutter SDK # TODO(#1204) reinstate shallow clone with --depth=1000 and its corresponding comment here @@ -47,3 +52,4 @@ jobs: branch: update-translations/weblate delete-branch: true title: Update translations from Weblate + base: ${{ github.head_ref }}