]> git.lizzy.rs Git - rust.git/commitdiff
Set a timeout on the Octokit client
authorLaurențiu Nicola <lnicola@dend.ro>
Tue, 28 Dec 2021 08:34:14 +0000 (10:34 +0200)
committerLaurențiu Nicola <lnicola@dend.ro>
Tue, 28 Dec 2021 09:03:54 +0000 (11:03 +0200)
.github/actions/github-release/main.js

index c8145f63c2b05281ba3ffe163b9cada9ed1aece8..e8dba398733c181da3306330778fda29b2310f49 100644 (file)
@@ -21,7 +21,12 @@ async function runOnce() {
   core.info(`files: ${files}`);
   core.info(`name: ${name}`);
 
-  const octokit = github.getOctokit(token);
+  const options = {
+    request: {
+      timeout: 30000,
+    }
+  };
+  const octokit = github.getOctokit(token, options);
 
   // Delete the previous release since we can't overwrite one. This may happen
   // due to retrying an upload or it may happen because we're doing the dev