Skip to content

Update Translations #1183

Update Translations

Update Translations #1183

---
name: Update Translations
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 'master'
submodules: true
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: '8.1'
tools: composer
- name: Setup Node.js
uses: actions/setup-node@v2-beta
with:
node-version: 18
- name: Setup submodules
run: git submodule init && git submodule update --force --rebase
- name: Install Composer
run: cd _backend && composer install
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Update
run: php _backend/Console/Translation.php
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
commit-message: "Automatic update of translations files from source"
title: "Automatic update of translations files from source"
branch: "update-translations-from-source"
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"