Merge branch 'master' of github.com:OpenTails/tail_app #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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 |