Skip to content

Commit c33c149

Browse files
committed
ci: make crowdin remote checks resilient
1 parent 5f0714b commit c33c149

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,14 @@ jobs:
466466
)
467467
PY
468468
JAR="/tmp/crowdin-cli/${CROWDIN_CLI_VERSION}/crowdin-cli.jar"
469-
java -jar "$JAR" config lint --config .github/crowdin.yml --identity /tmp/crowdin-identity.yml
470-
java -jar "$JAR" config sources --config .github/crowdin.yml --identity /tmp/crowdin-identity.yml
471-
java -jar "$JAR" config translations --config .github/crowdin.yml --identity /tmp/crowdin-identity.yml
469+
java -jar "$JAR" config lint --config .github/crowdin.yml --identity /tmp/crowdin-identity.yml
470+
471+
# These commands call Crowdin's remote API and can fail or hang for
472+
# reasons outside this repository (service issues, token scope, rate
473+
# limiting). Keep the structural lint above as the hard gate, and
474+
# surface remote validation problems as warnings instead of breaking CI.
475+
for check in sources translations; do
476+
if ! timeout 60 java -jar "$JAR" config "$check" --config .github/crowdin.yml --identity /tmp/crowdin-identity.yml; then
477+
echo "::warning::Crowdin remote '${check}' validation failed or timed out; skipping as non-blocking."
478+
fi
479+
done

0 commit comments

Comments
 (0)