forked from flybywiresim/aircraft
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (56 loc) · 2.44 KB
/
localization.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
name: 'Localazy Update Download'
on:
schedule:
# https://crontab.guru/
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
localization-update:
runs-on: ubuntu-latest
if: github.repository_owner == 'flybywiresim'
steps:
- name: Checkout Branch
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install Localazy CLI
run: npm install -g @localazy/cli
- name: Download flyPad Translations
run: cd fbw-common/src/systems/instruments/src/EFB/Localization && node build-flypad-translation.js
- name: Download A32NX locPak Translations
run: cd fbw-a32nx/src/localization && node build-locPak-translation.js
- name: Download A380X locPak Translations
run: cd fbw-a380x/src/localization && node build-locPak-translation.js
- name: Print git status
run: git status
- name: Create PR
uses: gr2m/create-or-update-pull-request-action@v1.x # Generate a PR or updates an existing PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: localazy-update # Specify branch that this action uses.
title: 'build: update FlyByWire localization'
body: >
This PR automatically downloads and updates the approved changes from Localazy translations for
the flyPadOS3 and the locPak files for persisting these changes in the repo.
Changes will be collected in this PR and this PR needs to be manually merged to master eventually.
Ask on Discord #localisation if you have questions about this.
labels: |
EFB,
i18n
path: fbw-common/src/systems/instruments/src/EFB/Localization
commit-message: 'automatically updated flyPad localization'
- uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: localazy-update # Specify branch that this action uses.
path: fbw-a32nx/src/localization
commit-message: 'automatically updated A32NX locPak localization'
- uses: gr2m/create-or-update-pull-request-action@v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: localazy-update # Specify branch that this action uses.
path: fbw-a380x/src/localization
commit-message: 'automatically updated A380X locPak localization'