aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-01-09 13:53:38 +0530
committerGitHub <noreply@github.com>2022-01-09 08:23:38 +0000
commit910212b3ae66cd7611c2fc79cc9e5fb2ce7826ff (patch)
treeffac252a783fa5b8797f64d32a7eef863cd0564d
parent45b75b74c57ede100875bc9b03f0b7153f69788b (diff)
Raise timeouts for Crowdin task again (#1652)
* build-logic: raise HTTP timeouts for Crowdin again * github: allow running Crowdin job manually
-rw-r--r--.github/workflows/sync_crowdin.yml1
-rw-r--r--build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt8
2 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/sync_crowdin.yml b/.github/workflows/sync_crowdin.yml
index 8f4c6030..651cd603 100644
--- a/.github/workflows/sync_crowdin.yml
+++ b/.github/workflows/sync_crowdin.yml
@@ -1,5 +1,6 @@
name: Sync localisations from Crowdin
on:
+ workflow_dispatch:
schedule:
- cron: '0 0 * * 6'
diff --git a/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt b/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt
index c6542725..f80d2ad4 100644
--- a/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt
+++ b/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt
@@ -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()