From 6c2033eb4d9f05643eb3e23f96fbb3270de6f3de Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sat, 29 Jun 2024 19:54:09 +0200 Subject: [PATCH] run the po_gen script on each push to keep po files up to date --- .github/workflows/compile-mo.yml | 12 ++++++------ .github/workflows/translation.yml | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/compile-mo.yml b/.github/workflows/compile-mo.yml index ce60ff9a7..a07aed3c8 100644 --- a/.github/workflows/compile-mo.yml +++ b/.github/workflows/compile-mo.yml @@ -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" diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 41235ee85..15da26f2e 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -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 }}