-
-
Notifications
You must be signed in to change notification settings - Fork 706
64 lines (50 loc) · 1.5 KB
/
update_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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
name: Update Translations
on:
schedule:
- cron: "0 1 * * *"
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@v4
with:
ref: 'master'
submodules: true
- name: Setup PHP
uses: shivammathur/setup-php@2.31.1
with:
php-version: '8.1'
tools: composer
- name: Setup Node.js
uses: actions/setup-node@v4.0.4
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@v7
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 }}"