From edbb39bf86e5ac12e8ad2baaf7291abd5722ca17 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Wed, 30 Aug 2023 18:58:31 +0300 Subject: [PATCH] fix: validate translation files only when it's changed (#581) This helps to avoid breaking PR builds due to translation issues even though it's not the PR's fault. This contribution is part of the [FC-0012 project](https://openedx.atlassian.net/l/cp/XGS0iCcQ) which is sparked by the [Translation Infrastructure update OEP-58](https://open-edx-proposals.readthedocs.io/en/latest/architectural-decisions/oep-0058-arch-translations-management.html#specification). --- .github/workflows/validate-translation-files.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate-translation-files.yml b/.github/workflows/validate-translation-files.yml index 62f90f150cb..2621c4b4f5c 100644 --- a/.github/workflows/validate-translation-files.yml +++ b/.github/workflows/validate-translation-files.yml @@ -3,7 +3,9 @@ name: Validate translation PO files on: - - pull_request + pull_request: + paths: + - 'translations/**' jobs: validate-po-files: