redenumire headgear + adaugare spatiu dupa punct #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Translation Stats | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
comp-stats: | |
name: Compute translation stats | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
steps: | |
- name: Setup python env | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Checkout the wiki | |
uses: actions/checkout@v2 | |
with: | |
repository: "${{ github.repository }}.wiki" | |
path: .wiki | |
- name: Run script (t_stats.py) | |
run: | | |
python scripts/t_stats.py . -s | tee .wiki/Translation-progress.md | |
- name: Commit to wiki | |
working-directory: .wiki | |
run: | | |
git config user.name "[bot] ${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git add . | |
if git commit -m "auto-update wiki report (${GITHUB_WORKFLOW})"; then | |
git push origin master | |
fi |