Unnamed repository; edit this file 'description' to name the repository.
Merge #11127
11127: internal: Set a timeout on the Octokit client r=lnicola a=lnicola CC #11056 Co-authored-by: LaurenČ›iu Nicola <[email protected]>
bors[bot] 2021-12-28
parent 5c11b36 · parent 5aa0d12 · commit 05f7924
-rw-r--r--.github/actions/github-release/main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/actions/github-release/main.js b/.github/actions/github-release/main.js
index c8145f63c2..e8dba39873 100644
--- a/.github/actions/github-release/main.js
+++ b/.github/actions/github-release/main.js
@@ -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