-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from Wizarrrr/master
workflow
- Loading branch information
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Compile Translations | ||
|
||
on: | ||
push: | ||
branches: | ||
- translations | ||
workflow_dispatch: {} | ||
|
||
permissions: | ||
packages: write | ||
|
||
jobs: | ||
compile: | ||
runs-on: ubuntu-latest | ||
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 | ||
# Install dependencies for frontend | ||
- name: Install dependencies for frontend | ||
run: | | ||
cd frontend | ||
npm install | ||
# Compile translations | ||
- name: Compile translations | ||
run: | | ||
cd frontend | ||
npm run gettext:compile | ||
# Commit and push changes | ||
- name: Commit and push changes | ||
run: | | ||
git config --local user.name "GitHub Action" | ||
git config --local user.email "<>" | ||
git add ./src/language/translations.json | ||
git commit -m "Compile translations" | ||
git push origin translations |