-
Notifications
You must be signed in to change notification settings - Fork 92
46 lines (39 loc) · 1.25 KB
/
translations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: |
npm install vue3-gettext
# Compile translations
- name: Compile translations
run: |
cd apps/wizarr-frontend/
npx vue-gettext-compile
# Commit and push changes
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Compile translations'
file_pattern: '**/translations.json'
branch: translations