Skip to content

Add mangrove mapping workflow (#584) #1643

Add mangrove mapping workflow (#584)

Add mangrove mapping workflow (#584) #1643

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: python -m pip install nox
- name: Update module files
run: nox -s compile
- name: Generate .po files
run: nox -s i18n
- name: Check for changes
id: changes
run: |
if git diff --quiet; then
echo "has_changes=false" >> "$GITHUB_OUTPUT"
else
echo "has_changes=true" >> "$GITHUB_OUTPUT"
fi
- name: Push changes
if: steps.changes.outputs.has_changes == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: l18n_main_cron
create_branch: true
commit_message: "Automatic compilation and i18n update"
push_options: "--force"
- name: Create pull request
if: steps.changes.outputs.has_changes == 'true'
uses: devops-infra/action-pull-request@v0.5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: l18n_main_cron
target_branch: main