Translations update from Hosted Weblate (#470) #14
This file contains hidden or 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: Generate Wiki Pages from XML | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'translations/*.xml' | |
| branches: | |
| - webpage | |
| jobs: | |
| generate-wiki: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 'webpage' branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: webpage | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - name: Run Python script to generate markdown | |
| run: | | |
| python3 generate_wiki_pages_from_xml.py \ | |
| --xml-dir=translations \ | |
| --output-dir=wiki/synchronization \ | |
| --strings=synchronization_between_computers_title,synchronization_intro,set_up_first_pc,set_up_second_pc,bidirectional_sync,synchronization_files | |
| - name: Commit and push changes to 'webpage' branch | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add wiki/synchronization/*.md | |
| git commit -m "Update wiki markdown from XML translations" || echo "No changes to commit" | |
| git push origin webpage |