Skip to content

Merge pull request #1012 from Websoft9/update-vaultwarden-31680a92 #555

Merge pull request #1012 from Websoft9/update-vaultwarden-31680a92

Merge pull request #1012 from Websoft9/update-vaultwarden-31680a92 #555

Workflow file for this run

name: i18n
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- "apps/*/.env"
jobs:
create:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@master
name: Check out code
- name: Update translation.json
run: |
echo "start to update translation.json"
cd i18n
pip3 install python-dotenv
python3 create.py
- name: push i18n
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: push i18n
push_options: --force
pr:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
strategy:
matrix:
repository: ['Websoft9/plugin-appstore', 'Websoft9/plugin-myapps']
steps:
- name: Checkout
uses: actions/checkout@v3
with:
repository: ${{ matrix.repository }}
ref: main
- name: Update languages files
run: |
cd public
wget https://raw.githubusercontent.com/Websoft9/docker-library/main/i18n/translation.json
wget https://raw.githubusercontent.com/Websoft9/docker-library/main/i18n/pr.py
python3 pr.py translation.json po.en_US.js po.zh_CN.js
rm -rf pr.py translation.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.ZJ_ADMIN_TOKEN }}
branch: update-${{ matrix.repository }}-version-${{ github.run_number }}
delete-branch: true
commit-message: "${{ matrix.repository }} combine translation.json"
title: "${{ matrix.repository }} combine translation.json"
body: "${{ matrix.repository }} combine translation.json"