Raise timeouts for Crowdin task again (#1652)

* build-logic: raise HTTP timeouts for Crowdin again

* github: allow running Crowdin job manually
This commit is contained in:
Harsh Shandilya 2022-01-09 13:53:38 +05:30 committed by GitHub
parent 45b75b74c5
commit 910212b3ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,6 @@
name: Sync localisations from Crowdin
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 6'

View file

@ -49,10 +49,10 @@ class CrowdinDownloadPlugin : Plugin<Project> {
}
val client =
OkHttpClient.Builder()
.connectTimeout(5, TimeUnit.SECONDS)
.writeTimeout(5, TimeUnit.SECONDS)
.readTimeout(5, TimeUnit.SECONDS)
.callTimeout(10, TimeUnit.SECONDS)
.connectTimeout(5, TimeUnit.MINUTES)
.writeTimeout(5, TimeUnit.MINUTES)
.readTimeout(5, TimeUnit.MINUTES)
.callTimeout(10, TimeUnit.MINUTES)
.build()
val url = CROWDIN_BUILD_API_URL.format(projectName, login.get(), key.get())
val request = Request.Builder().url(url).get().build()