File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Weblate Reformat
2
+ on :
3
+ pull_request_target :
4
+ paths :
5
+ - ' frontend/xliff/**"
6
+ - ' .github/workflows/weblate-reformat.yaml'
7
+
8
+ branches :
9
+ - ' weblate'
10
+
11
+ jobs :
12
+ setup-and-build :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ # Give the default GITHUB_TOKEN write permission to commit and push the
16
+ # added or changed files to the repository.
17
+ contents : write
18
+
19
+ steps :
20
+ # Setup:
21
+ - name : Checkout
22
+ uses : actions/checkout@v4
23
+ with :
24
+ ref : ${{ github.head_ref }}
25
+ - name : Setup Node
26
+ uses : actions/setup-node@v4
27
+ with :
28
+ node-version : ' 18'
29
+ cache : ' yarn'
30
+ cache-dependency-path : frontend/yarn.lock
31
+ - name : Install dependencies
32
+ working-directory : frontend
33
+ env :
34
+ HUSKY : 0
35
+ run : yarn install --frozen-lockfile
36
+
37
+ # Localize:
38
+ - name : Extract strings
39
+ working-directory : frontend
40
+ run : yarn localize:extract
41
+
42
+ - name : Check localization build
43
+ working-directory : frontend
44
+ run : yarn localize:build
45
+
46
+ - name : Reformat localized strings
47
+ uses : stefanzweifel/git-auto-commit-action@v5
48
+ with :
49
+ commit_message : Apply `localize:extract` changes
50
+ file_pattern : ' **/*.xlf'
51
+ skip_fetch : true
52
+ skip_checkout : true
You can’t perform that action at this time.
0 commit comments