Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/translate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ jobs:
git fetch origin "+refs/heads/main:refs/remotes/origin/main"
if git fetch origin "+refs/heads/${TRANSLATE_BRANCH}:refs/remotes/origin/${TRANSLATE_BRANCH}" 2>/dev/null; then
git switch -c "$TRANSLATE_BRANCH" "origin/$TRANSLATE_BRANCH"
git merge --no-edit origin/main
# main wins conflicting hunks: it also edits locale files directly (the
# config version sync rewrites every librechat.yaml snippet), and those
# edits would otherwise conflict with the branch's translations of the
# same lines and stop every run. Non-conflicting translations are kept.
git merge -X theirs --no-edit origin/main
else
git switch -c "$TRANSLATE_BRANCH" origin/main
fi
Expand Down Expand Up @@ -213,7 +217,7 @@ jobs:
if git show-ref --verify --quiet "refs/remotes/origin/${TRANSLATE_BRANCH}"; then
git merge --no-edit "origin/${TRANSLATE_BRANCH}"
fi
git merge --no-edit origin/main
git merge -X theirs --no-edit origin/main
sleep 5
done
if [ "$pushed" != "true" ]; then
Expand Down
Loading