Merge pull request #264 from weblate/weblate-wizarr-v3-wizarr #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile Translations | |
on: | |
push: | |
branches: | |
- translations | |
workflow_dispatch: {} | |
permissions: | |
packages: write | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
# Checkout the repo and the translations branch | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: translations | |
# Install dependencies node and npm | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y nodejs npm gettext | |
# Install dependencies for frontend | |
- name: Install dependencies for frontend | |
run: | | |
cd frontend && npm install vue3-gettext | |
# Compile translations | |
- name: Compile translations | |
run: | | |
cd frontend | |
npm run gettext:compile | |
# Commit and push changes | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Compile translations" | |
file_pattern: "**/translations.json" | |
branch: translations |