From 44a07d65b03a8d3a2930c0e901b01325a62dc8c3 Mon Sep 17 00:00:00 2001 From: Eduard Krasnov Date: Wed, 26 Nov 2025 13:08:09 +0100 Subject: [PATCH] added timeout handling --- .github/workflows/translate.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml index 4e2511dd..bc632fa7 100644 --- a/.github/workflows/translate.yml +++ b/.github/workflows/translate.yml @@ -54,6 +54,7 @@ jobs: - name: Translate changed files if: steps.changed-files.outputs.changed == 'true' + continue-on-error: true env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} run: | @@ -63,7 +64,7 @@ jobs: RELATIVE_PATH="${file#docs/en/}" echo "Translating: $RELATIVE_PATH" - python translate.py --file "$RELATIVE_PATH" --lang all --force + python translate.py --file "$RELATIVE_PATH" --lang all --force || echo "Translation failed for $RELATIVE_PATH but continuing..." done - name: Check for translation changes @@ -119,7 +120,7 @@ jobs: else echo "ℹ️ No translation changes needed" >> $GITHUB_STEP_SUMMARY fi - + # Add translation stats if available if [ -n "${{ steps.translate.outputs.translation_success }}" ]; then echo "" >> $GITHUB_STEP_SUMMARY