mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
run the po_gen script on each push to keep po files up to date
This commit is contained in:
12
.github/workflows/compile-mo.yml
vendored
12
.github/workflows/compile-mo.yml
vendored
@@ -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"
|
||||
|
||||
8
.github/workflows/translation.yml
vendored
8
.github/workflows/translation.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user