-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 1.06 KB
/
lwc_transifex_stats.yml
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
name: Translation statistics 🗺
on:
schedule:
- cron: '0 6 2 * *'
workflow_dispatch:
jobs:
translation-stats:
if: github.repository == '3liz/3liz.github.io'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: "master"
fetch-depth: 1
token: ${{ secrets.BOT_HUB_TOKEN }} # Important to launch CI on a commit from a bot
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: python3 -m pip install requests
- name: Report statistics
run: python3 scripts/lizmap_i18n_stats.py ${{ secrets.TRANSIFEX_TOKEN }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update statistics from Transifex Lizmap Web Client"
commit_user_name: ${{ secrets.BOT_NAME }}
commit_user_email: ${{ secrets.BOT_MAIL }}
commit_author: ${{ secrets.BOT_NAME_MAIL }}