From 96e1d421116b38851f651e12b81c3aa341a6f9f2 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Thu, 29 Feb 2024 21:01:06 +0600 Subject: [PATCH] Update `changed-translation-files` step with native git diff command --- .github/workflows/integration-tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index a0216526e0e8..5511e08ad640 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -198,10 +198,14 @@ jobs: # sudo rm -rf .phpunit # [ -d .phpunit.bak ] && mv .phpunit.bak .phpunit - - uses: marceloprado/has-changed-path@v1.0.1 + - name: Check for changes in translation files id: changed-translation-files - with: - paths: src/**/Resources/translations/*.xlf + run: | + if git diff --quiet HEAD~1 HEAD -- 'src/**/Resources/translations/*.xlf'; then + echo "{changed}={true}" >> $GITHUB_OUTPUT + else + echo "{changed}={false}" >> $GITHUB_OUTPUT + fi - name: Check Translation Status if: steps.changed-translation-files.outputs.changed == 'true'