-
-
Notifications
You must be signed in to change notification settings - Fork 55
38 lines (31 loc) · 1.04 KB
/
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/QuickOSM'
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.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: python3 -m pip install requests
- name: Report statistics
run: python3 .github/transifex_stats.py ${{ secrets.TRANSIFEX_TOKEN }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update statistics from Transifex"
commit_user_name: ${{ secrets.BOT_NAME }}
commit_user_email: ${{ secrets.BOT_MAIL }}
commit_author: ${{ secrets.BOT_NAME_MAIL }}