Skip to content

Commit d5fa4cf

Browse files
fix: doc translation triggers (#2267)
Prevents PRs like #2259 by fixing the `git diff` so it ignores nested translation files.
1 parent 53dfd2f commit d5fa4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/translate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# because this workflow needs to push a branch via git push
2626
- id: md_files
2727
run: |
28-
FILES=$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" -- 'docs/*.md')
28+
FILES=$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" -- 'docs/*.md' ':(exclude)docs/*/*.md')
2929
FILES=$(echo "$FILES" | xargs -n1 basename | tr '\n' ' ')
3030
[ -z "$FILES" ] && echo "found=false" >> "$GITHUB_OUTPUT" || echo "found=true" >> "$GITHUB_OUTPUT"
3131
echo "files=$FILES" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)