Files
wavelog/.github/workflows/translation.yml

34 lines
809 B
YAML

name: Run the po generator script
on:
push:
branches:
- dev
jobs:
build:
if: github.repository == 'wavelog/wavelog'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: wavelog/wavelog
ref: dev
- name: Set up gettext
run: sudo apt-get install -y gettext
- name: Run the po generator script
run: bash po_gen.sh
- name: Commit changes
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git add .
git commit -m "Run po_gen.sh script to update translation files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}