From 070379640f47b95b326ba682d7c9b2cd166f74e4 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Sun, 24 Nov 2024 12:03:24 +0100 Subject: [PATCH] ci: Add GitHub action to run translation scripts on push to l10n_develop branch Add a new GitHub action to run translation scripts on push to `l10n_develop` branch. * **Trigger**: Set the action to run on push to the `l10n_develop` branch. * **Checkout**: Add a step to check out the repository. * **Run Scripts**: Add steps to run the iOS translation script and the l10n translation script, including setting execute permissions for the scripts. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/openfoodfacts/smooth-app?shareId=XXXX-XXXX-XXXX-XXXX). --- .../workflows/run_translation_scripts.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 packages/smooth_app/.github/workflows/run_translation_scripts.yml diff --git a/packages/smooth_app/.github/workflows/run_translation_scripts.yml b/packages/smooth_app/.github/workflows/run_translation_scripts.yml new file mode 100644 index 00000000000..c1d40dccc06 --- /dev/null +++ b/packages/smooth_app/.github/workflows/run_translation_scripts.yml @@ -0,0 +1,24 @@ +name: Run Translation Scripts + +on: + push: + branches: + - l10n_develop + +jobs: + run-scripts: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run iOS translation script + run: | + chmod +x packages/smooth_app/ios/Runner/remove.sh + packages/smooth_app/ios/Runner/remove.sh + + - name: Run l10n translation script + run: | + chmod +x packages/smooth_app/lib/l10n/remove_3_letter_locales.sh + packages/smooth_app/lib/l10n/remove_3_letter_locales.sh