Import Firefox for Android #828
This file contains hidden or 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
| name: Import Firefox for Android | |
| on: | |
| schedule: | |
| - cron: "5 15 * * 1,4" | |
| workflow_dispatch: | |
| jobs: | |
| copy: | |
| name: Import strings | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone android-l10n repository | |
| uses: actions/checkout@v5 | |
| with: | |
| path: l10n | |
| - name: Clone firefox repository | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: mozilla-firefox/firefox | |
| path: source | |
| sparse-checkout: | | |
| mobile/android/fenix | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Python dependencies | |
| run: | | |
| pip install -r l10n/.github/requirements.txt | |
| - name: Copy source files | |
| run: > | |
| python l10n/.github/scripts/import_strings.py source | |
| --toml source/mobile/android/fenix/l10n.toml | |
| --dest l10n/mozilla-mobile/fenix | |
| - name: Update linter exceptions | |
| run: > | |
| python l10n/.github/scripts/update_config.py | |
| --toml l10n/firefox.toml | |
| --config l10n/.github/scripts/linter_config.json | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.ANDROID_GITHUB_TOKEN }} | |
| path: l10n | |
| branch: fenix_l10n_updates | |
| author: l10n-bot <actions@users.noreply.github.com> | |
| commit-message: "Import fenix quarantine" | |
| title: "Import fenix quarantine" | |
| body: "Import fenix quarantine" | |
| labels: l10n-bot |