File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 6
6
schedule :
7
7
- cron : " 0 10 * * 1"
8
8
workflow_dispatch :
9
+
9
10
jobs :
10
11
update-translations :
11
12
runs-on : ubuntu-latest
12
13
steps :
13
14
- uses : actions/checkout@v4
15
+
14
16
- name : Fetch and merge from Weblate
15
17
# The commit message is generated in Weblate; see https://hosted.weblate.org/addon/17163/
16
18
run : |
17
19
git remote add weblate https://hosted.weblate.org/git/zulip/zulip-flutter/
18
20
git fetch weblate
19
21
git merge --ff-only weblate/main
22
+
23
+ - name : Clone Flutter SDK
24
+ # We can't do a depth-1 clone, because we need the most recent tag
25
+ # so that Flutter knows its version and sees the constraint in our
26
+ # pubspec is satisfied. It's uncommon for flutter/flutter to go
27
+ # more than 100 commits between tags. Fetch 1000 for good measure.
28
+ run : |
29
+ git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter
30
+ TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
31
+ echo ~/flutter/bin >> "$GITHUB_PATH"
32
+
33
+ # The Flutter tool assumes the tip of tree is "origin/master"
34
+ # (or "upstream/master"):
35
+ # https://github.com/flutter/flutter/issues/160626
36
+ # TODO(upstream): make workaround unneeded
37
+ git --git-dir ~/flutter/.git update-ref refs/remotes/origin/master origin/main
38
+
39
+ - name : Update generated code
40
+ run : |
41
+ mkdir -p build
42
+ tools/check l10n --fix
43
+ git add lib/generated/l10n/
44
+ GIT_COMMITTER_NAME="Hosted Weblate" GIT_COMMITTER_EMAIL="[email protected] " \
45
+ git commit --amend -C HEAD
46
+
20
47
- name : Create Pull Request
21
48
uses : peter-evans/create-pull-request@v7
22
49
with :
You can’t perform that action at this time.
0 commit comments