From 31a585fdfc62291196d280fb61eeacf6fcc1d462 Mon Sep 17 00:00:00 2001 From: Frank Kopp Date: Mon, 9 Sep 2024 12:05:14 +0200 Subject: [PATCH] chore: Fix localization workflow (#8884) Fix workflow by adding additional paths/commits --- .github/workflows/localization.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/localization.yml b/.github/workflows/localization.yml index c1b52d467f0..c5fb2c4a82a 100644 --- a/.github/workflows/localization.yml +++ b/.github/workflows/localization.yml @@ -18,8 +18,10 @@ jobs: 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 locPak Translations + - 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 @@ -27,9 +29,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - path: fbw-a32nx/src/localization branch: localazy-update # Specify branch that this action uses. - commit-message: 'automatically updated FlyByWire localization' title: 'build: update FlyByWire localization' body: > This PR automatically downloads and updates the approved changes from Localazy translations for @@ -39,3 +39,19 @@ jobs: 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'