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:
parent
45b75b74c5
commit
910212b3ae
2 changed files with 5 additions and 4 deletions
1
.github/workflows/sync_crowdin.yml
vendored
1
.github/workflows/sync_crowdin.yml
vendored
|
@ -1,5 +1,6 @@
|
|||
name: Sync localisations from Crowdin
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * 6'
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue