8000 Update `changed-translation-files` step with native git diff command · symfony/symfony@96e1d42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96e1d42

Browse files
committed
Update changed-translation-files step with native git diff command
1 parent 6fadff7 commit 96e1d42

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/integration-tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,14 @@ jobs:
198198
# sudo rm -rf .phpunit
199199
# [ -d .phpunit.bak ] && mv .phpunit.bak .phpunit
200200

201-
- uses: marceloprado/has-changed-path@v1.0.1
201+
- name: Check for changes in translation files
202202
id: changed-translation-files
203-
with:
204-
paths: src/**/Resources/translations/*.xlf
203+
run: |
204+
if git diff --quiet HEAD~1 HEAD -- 'src/**/Resources/translations/*.xlf'; then
205+
echo "{changed}={true}" >> $GITHUB_OUTPUT
206+
else
207+
echo "{changed}={false}" >> $GITHUB_OUTPUT
208+
fi
205209
206210
- name: Check Translation Status
207211
if: steps.changed-translation-files.outputs.changed == 'true'

0 commit comments

Comments
 (0)
0