chore(release): Bump version info, tag and release #52
Workflow file for this run
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: Update .mo files | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- ardupilot_methodic_configurator/locale/**/ardupilot_methodic_configurator.po | |
permissions: | |
contents: read | |
jobs: | |
update-mo-files: | |
permissions: | |
contents: write # for Git to git push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout MethodicConfigurator | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python | |
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 | |
with: | |
python-version: '3.x' | |
- name: Install apt packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gettext | |
- name: Update translation .mo files from the .po files | |
run: python create_mo_files.py | |
- name: Commit changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
git add ardupilot_methodic_configurator/locale/**/ardupilot_methodic_configurator.mo | |
if [ -n "$(git status --porcelain)" ]; then | |
git commit -m "chore(translation): Updated translation .mo files from the .po files" | |
git push | |
else | |
echo "No changes to commit" | |
fi |