run the po_gen script on each push to keep po files up to date

This commit is contained in:
HB9HIL
2024-06-29 19:54:09 +02:00
parent b1e0ce2e52
commit 6c2033eb4d
2 changed files with 10 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
name: Compile .mo files from changed .po files
on:
push:
paths:
- '**/*.po'
branches:
- 'dev'
workflow_dispatch:
# paths:
# - '**/*.po'
# branches:
# - 'dev'
jobs:
compile_mo:
@@ -42,7 +42,7 @@ jobs:
git config --global user.email "github-actions@github.com"
if [ -n "$(git status --porcelain)" ]; then
git add $(git ls-files --modified | grep '\.mo$')
git commit -m "Compiled .mo files"
git commit -m "Compiled .mo files (manually triggered)"
git push
else
echo "No changes to commit"

View File

@@ -1,7 +1,7 @@
name: Run the PO generator script
name: Run the po generator script
on:
workflow_dispatch:
push:
jobs:
build:
@@ -17,7 +17,7 @@ jobs:
- name: Set up gettext
run: sudo apt-get install -y gettext
- name: Run the PO generator script
- name: Run the po generator script
run: bash po_gen.sh
- name: Commit changes
@@ -25,7 +25,7 @@ jobs:
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 translations (manually triggered)"
git commit -m "Run po_gen.sh script to update translation-files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}