-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (42 loc) · 1.27 KB
/
extract_strings.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: Extract strings
on:
push:
branches:
- main
workflow_dispatch:
jobs:
extraction:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install Python dependencies
run: |
pip install -r .github/requirements.txt
- name: Extract strings
run: >
python .github/scripts/extract_strings.py
--toml l10n.toml
--dest .github/storage
- name: Add comment on completion
run: >
python .github/scripts/comment_complete_experiment.py
--repo ${{ github.repository }}
--token ${{ secrets.API_GITHUB_TOKEN }}
- name: Commit changes
continue-on-error: true
run : |
# Commit changes. Failure is allowed if there is nothing to commit.
git config --global user.email '[email protected]'
git config --global user.name 'Francesco Lodolo [:flod]'
git add .github/storage
git commit -m "Update translations storage"
git push