Skip to content

Commit 7dff110

Browse files
committed
DO NOT MERGE: Run on this PR.
1 parent 0e7cd86 commit 7dff110

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update-translations.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ permissions:
33
contents: write
44
pull-requests: write
55
on:
6+
pull_request:
67
schedule:
78
- cron: "0 10 * * 1"
89
workflow_dispatch:
@@ -12,13 +13,18 @@ jobs:
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
1518

1619
- name: Fetch and merge from Weblate
1720
# The commit message is generated in Weblate; see https://hosted.weblate.org/addon/17163/
1821
run: |
22+
git checkout -b main
23+
git log --oneline --graph --all -n5
1924
git remote add weblate https://hosted.weblate.org/git/zulip/zulip-flutter/
2025
git fetch weblate
21-
git merge --ff-only weblate/main
26+
GIT_COMMITTER_NAME="Hosted Weblate" GIT_COMMITTER_EMAIL="[email protected]" \
27+
git cherry-pick weblate/main ^HEAD
2228
2329
- name: Clone Flutter SDK
2430
# TODO(#1204) reinstate shallow clone with --depth=1000 and its corresponding comment here
@@ -47,3 +53,4 @@ jobs:
4753
branch: update-translations/weblate
4854
delete-branch: true
4955
title: Update translations from Weblate
56+
base: ${{ github.head_ref }}

0 commit comments

Comments
 (0)