Skip to content

Translation statistics 🗺 #100

Translation statistics 🗺

Translation statistics 🗺 #100

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 }}