-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (42 loc) · 1.28 KB
/
import_focus.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
name: Import Focus
on:
schedule:
- cron: "10 15 * * 1-5"
workflow_dispatch:
jobs:
copy:
name: Import strings
runs-on: ubuntu-latest
steps:
- name: Clone android-l10n repository
uses: actions/checkout@v3
with:
path: "l10n"
- name: Clone main code repository
uses: actions/checkout@v3
with:
repository: "mozilla-mobile/firefox-android"
path: "source"
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: "3.10"
- 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/focus-android/l10n.toml
--dest l10n/mozilla-mobile/focus-android
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.ANDROID_GITHUB_TOKEN }}
path: l10n
branch: focus_l10n_updates
author: l10n-bot <actions@users.noreply.github.com>
commit-message: "Import focus quarantine"
title: "Import focus quarantine"
body: "Import focus quarantine"
labels: l10n-bot