Updated *.files #78
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: update-qm-files | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: write | |
| jobs: | |
| run-only-for-weblate: | |
| if: contains(github.event.head_commit.message, 'weblate') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Qt tools | |
| run: sudo apt-get update && sudo apt-get install -y qt6-tools-dev-tools | |
| - name: Ensure script is executable | |
| run: chmod +x generate_qm_files.sh | |
| - name: Run script | |
| run: ./generate_qm_files.sh | |
| - name: Commit updated .qm files | |
| run: | | |
| git config --global user.name "github-actions" | |
| git config --global user.email "github-actions@github.com" | |
| git add translations/*.qm | |
| git commit -m "Updated .qm files" || echo "No changes to commit" | |
| git push |