forked from qgis/QGIS-Documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 990 Bytes
/
translation_statistics.yml
File metadata and controls
42 lines (34 loc) · 990 Bytes
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: Translation statistics
# Pull statistics of translation in Transifex
on:
schedule:
# runs tuesday at 6:00 UTC
- cron: '0 6 * * 2'
workflow_dispatch:
jobs:
ReportTranslationStats:
if: github.repository_owner == 'qgis'
runs-on: ubuntu-latest
strategy:
matrix:
target_branch: [release_3.22]
env:
TRANSIFEX_PASSWORD: ${{ secrets.TRANSIFEX_PASSWORD }}
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
ref: ${{ matrix.target_branch }}
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: python3 -m pip install requests
- name: Report statistics
run: python3 ./scripts/load_tx_stats.py $TRANSIFEX_PASSWORD
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update statistics of translation