-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlocalization_strings_update.yml
More file actions
30 lines (30 loc) 路 1.41 KB
/
Copy pathlocalization_strings_update.yml
File metadata and controls
30 lines (30 loc) 路 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
push:
paths:
- 'lib/Frontend/translation_string_definitions.dart'
jobs:
build_android:
name: Update Localization Files
runs-on: ubuntu-latest
permissions: # Job-level permissions configuration starts here
contents: write # 'write' access to repository contents
pull-requests: write # 'write' access to pull requests
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.ref_name }} # must be a branch, not a tag or SHA (detached HEAD)
fetch-depth: 0
- name: Setup Environment
uses: ./.github/actions/setup_build
- name: Install packages
run: flutter config --no-cli-animations && flutter pub get
- name: Generate intl_translation
run: dart pub global activate intl_translation && dart pub global run intl_translation:extract_to_arb --locale=en --output-file='./lib/l10n/messages_en.arb' ./lib/Frontend/translation_string_definitions.dart
- name: Stage Changes
run: git config user.email "github-actions[bot]@users.noreply.github.com" && git config user.name "github-actions[bot]" && git commit -am "Update EN language file"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
pull: rebase # pull --rebase before push; also accepts: merge | ff-only | true